jquery,css,scroll,wordpress-themingRelated issues-Collection of common programming errors
MPD
7 jquery admin-theme
I have installed jQuery Update but it breaks some core functionality that makes the admin UI a struggle to deal with. Is there a way to keep jQuery Update enabled but disable it when the admin theme is visible?
Jamal
jquery plugin twitter
I’ve been working on a jQuery plugin for pulling tweets since the v1 endpoints were all closed off and you need oAuth now. This is just the jQuery part but if you want to see the php behind it I’ll be happy to post. But basically, I’d love suggestions, as this is one of the first real plugins i’ve made, i’m really looking for critique on patterns and efficiency. Is there anything I’m doing that can be shorten’d significantly? Is there a feature you think would be cool for me to include?And just
Jamal
javascript jquery datetime plugin twitter
I’ve built a Twitter plugin recently and was wondering if I could get some feedback on it. There is also a PHP side that grabs the actual tweets and I can post that code if it’s needed.http://jsfiddle.net/cKfDd/;(function ( $, window, document, undefined ) { /************************************* Plugin Functions *************************************/ /*************************************/ Plugin.prototype.init = function () {var params = [ ‘?user=’ + this.options.user,’&limit=’
laxman
php jquery ajax wordpress woocommerce
I am getting catchable fatal error in bellissima themeforest woocommerce theme.http://www.pursesgalore.com.au/ can anyone help on this?Code:if(!$dst_h) ://can’t resize, so return original url$img_url = $url;$dst_w = $orig_w;$dst_h = $orig_h;————————–line number 1040 ———————–else ://else check if cache existsif(file_exists($destfilename) && getimagesize($destfilename)) {$img_url = “{$upload_url}{$dst_rel_path}-{$suffix}.{$ext}”;} Error: Catchable fatal erro
Fran Verona
php javascript jquery ajax
I have a PHP file with the following code:<html><head><!– HEAD –><?php require_once ‘Language.php’; ?></head><body><script type=”text/javascript”>$.get(‘step2.php’,function(data){// Do something});</script></body> </html>As you can see, I’m trying to load some content via Ajax call. The problem is that step2.php contains some PHP code:<div class=”step-content table-bordered”><h3><?php echo $Lang->get(‘create_s2_title
Tom
jquery ajax joomla joomla2.5
Still having problems figuring out how to use Ajax and the Joomla framework together. I’ve created a Joomla component which I can access with:index.php?option=com_mycomponentI’m using Jquery with Ajax in components/com_mycomponent/views/mycomponent/tmpl/default.php:<?php // No direct access to this file defined(‘_JEXEC’) or die(‘Restricted access’); ?> <html> <head><title>Ajax with jQuery Example</title><script language=”javascript” type=”text/javascript” src=”ht
Asenar
javascript php jquery callback
i have make an php editor with so much effort but i cant print the fatal error. and want to print the fatal error. How to do this. I have code for run the php through eval function here is my jsfiddle – **http://jsfiddle.net/3c7F6/3/** I want to print an fatal error. Please help me to do this.please check the code and give me the suggestion
Ulker Ibrahimova
javascript jquery file-get-contents
This question already has an answer here:Ways to circumvent the same-origin policy11 answersIs there any way to get full page source of snother different site? Example my site is example.com but i want to get facebook’s page source on example.com. I tired this one: http://phpjs.org/functions/file_get_contents/ And it gives me null. So anyone knows it?function file_get_contents (url, flags, context, offset, maxLen) {// Read the entire file into a string//// version: 906.111// discuss at: http://
Mitesh Vora
jquery html css ellipsis
I tried looking here Insert ellipsis (…) into HTML tag if content too wide but could not get in chrome to work. I there solution for multiline in all browsers??
Ronald Yeung
javascript jquery ajax json cors
What I am trying to do is to have a page on the HTTP protocol sending an AJAX call to the same Web server but using HTTPS. Both the requesting page and the AJAX handler are on the same server, having the same domain and port. (I.e., only difference is the protocol.) To illustrate,Fromhttp://www.example.com/index.phpTriggers a jQuery AJAX call tohttps://www.example.com/authenticate.php?user=123&password=456(I am hoping to pass the password through HTTPS to make it encrypted over the Internet.
Love Senya
css less lessphp
I’m try to compile this .less code to .css via lessphp and get this error:Fatal Error: ==================== infinite loop detected: @pos-x: failed at `background-position: @pos-x 0; }` line: 3Here is my code.@pos-x : 0; @w : 30px; .a { background-position: @pos-x 0; }@pos-x: @pos-x – @w; .b { background-position: @pos-x 0; }What’s wrong with it? Can i use varable overriding in LESS?
Mitesh Vora
jquery html css ellipsis
I tried looking here Insert ellipsis (…) into HTML tag if content too wide but could not get in chrome to work. I there solution for multiline in all browsers??
vals
css
background: url(“images/main_bg.png”) repeat;Is a header/banner background image in style.css, but not sure how to get a shadow around it…I tried body {font-family: Arial,Helvetica,sans-serif; font-size: 13px;color: #333333;background: url(“images/main_bg.png”) repeat;box-shadow: 0 0 5px 2px #282a2d;line-height: 1.4; }But that didn’t work out…
thealexbaron
jquery css
Click “Rate” – that should pop up a normal boxy dialog, but styles aren’t working. Any ideas?Here’s the working example on the site: http://www.great-quotes.com/boxyTest.htmThe official boxy docs: onehackoranother.com/projects/jquery/boxy/.boxy-wrapper { position: absolute; } .boxy-wrapper.fixed { position: fixed; }/* Modal */.boxy-modal-blackout { position: absolute; background-color: black; left: 0; top: 0; }/* Border */.boxy-wrapper { empty-cells: show; }.boxy-wrapper .top-left,.boxy-wrapper
BoltClock
css background-image
Is anyone aware of a way to change one layer of a multi-layered background using pure css? I’ve been searching around but can’t find any mention of current, or even proposed future specification. My thinking says there probably wont be, but the net is so vast now I’m sure someone, somewhere, has information or links to discussions along these lines.pseudo cssAn example way of implementation, just to illustrate what I mean. The following would obviously have problems with regard to the order of p
?s??o?
android html css forms
I have a mobile web app that displays a dialog box within a position: fixed element overlaying the entire screen. No matter how much content is displayed or how far the page has scrolled, the overlay element dims the page content and the dialog appears on top of it all. There is an <input type=”search /> field in the dialog.On Android, when the user taps the input field to give it focus, some pretty erratic behavior often (but not always) ensues:The soft keyboard appears, then immediatel
Sander Marechal
html css
I need some help with my design. I want to display three equal-height boxes next to each other, like this ASCI art:+——+ +——+ +——+ | | | | | | | | | | | | | | | | | | +——+ +——+ +——+I also have an example online (with all the CSS).The contents of the boxes varies in height. The tricky thing is that these boxes also need to have rounded corners. For that I am using the “sliding doors” technique. Basically, the markup of a box is s
m1crdy
jquery css jquery-mobile iscroll iscrollview
i got iScrollView in my app for native scrolling but I´m getting a strange behaviour. The content is bouncing and then jumps down or up and stays there. I´m getting the feeling, that the plugin isn´t calculating the height… Anyone got this problem, too?My HTML<!DOCTYPE html> <html><head>// scripts are included </head><body><!– START PAGE –><div data-role=”page” id=”reviews”><!– START HEADER –><div data-role=”header” class=”header” data-pos
Troels Larsen
jquery html css css3
I’ve been exposed to the commandment of ‘no tables for layouts’ for years now, but I’m wondering if CSS still has no easy (readable) way of doing grid layouts?It’s been ages since I last did web development, and coming back to it from WPF, CSS still seems like a very limited way of coding layouts.What I’m trying to achieve is show in the Basically, I want my form to contain 5 columns:1 holding s. Autosized after the widest element 4 taking up the remaining space in the parent container, divided
grammar
html css flex json rollovers
I am using JSON to parse HTML data with customized html tags in Flex. Flex’s support for HTML is pretty minimal, so I am wondering if it’s possible to do a simple font color change rollover effect on these links. Currently I have found that Flex only supports a few HTML tags, but also supports CSS through Flex’s whack CSS methods. Can I manipulate HTML that is written in my JSON files through an external CSS file? Or better still using a simple tag with the JSON file?
Aaron Russell
jquery css jquery-mobile scroll appframework
i have a panel that contains a div that needs to not scroll when someone is scrolling down the listview, as is stands right now when i scroll it scrolls the whole entire panel. Im using Intel XDK NEW with App Framework 2.0, jQuery and JQM. Here is what i have please see comments<div id=”home” class=”panel” data-nav=”home-nav” data-load=”loadDashData”><header><h1>test</h1></header><div id=”dashUserInfo” class=”user-info”> //THIS IS THE DIV I DONT WANT SCROLLING
lior r
mobile scroll css-position
I have went all over the web to find a solution for this one …i want to create a fixed bottom menu for my web application, As i learned the support is not cross platform and each device and browser presents a different obstacle,I have placed an element withposition:fixed; bottom:0; left:0;problem : it is very buggy on some browsers (pops to place after the scroll ends , stays on the center of the screen, etc ‘ …)is there a good solution for this issue , or should i give it a rest 🙂 ?thanks
Siva Charan
jquery iframe mobile scroll
I have an iframe containing a web page that uses jQuery.To scroll to a specific position of the iframed page (the .js is included in the iframed page, non in the container page) I use:$(‘html,body’).animate({scrollTop: POSITION}, DURATION);I tested that the scroll works on latest desktop Firefox, Explorer, Safari and Chrome but on mobile iPad and Android native browser fails (on Firefox mobile it works).Anyone has some suggestion?
Kent
ios uitableview uinavigationcontroller scroll nsfetchedresultscontrolle
My app has a method to add a new item to a table (using Core Data for storage) which initializes the new object, adds it to Core Data, and segues to an Edit view.After editing and hitting the default “Back” button in the Edit view, I do the following in ViewDidAppear in order to scroll my table to the newly added item:- (void)viewDidAppear:(BOOL)animated {[super viewDidAppear:animated];// if a new event was just added then scroll the tableview to itif (_newlyAddedEvent != nil) {[self.eventListTa
Matt Mc
ios uiwebview uiscrollview delegates scroll
I’m developing for iOS 6, and I am working on a sort of toolbar at the top of a UIWebView that will recede as you scroll up on the UIWebView.My thought was that I could set the delegate of the UIScrollView that’s inside the UIWebView to send messages to my UIViewController, which will animate the constraints on the toolbar at the top to get it to shrink and move and so forth.However, the scrollViewDidScroll: method does not seem to get called, which confuses me.Now, there are a number of other q
angry ferret
jquery scroll
I have the following jQuery code:$(‘#staff_list’).scroll(function(){var dif = scrollPrev – $(‘#staff_list’).scrollTop();scrollPrev = $(‘#staff_list’).scrollTop();var pos = parseInt($(‘.selected’).css(‘margin-top’)) + dif;var limit = $(‘.selected’).position().top + parseInt($(‘.selected’).css(‘margin-top’));if( limit < 474 ) {$(‘.selected’).css(‘margin-top’,pos + ‘px’);} });The code is suppose to ensure $(‘.selected’) moves with $(‘#staff_list’) when the list is scrolled. However, I want to li
Heather Roberts
flex actionscript-3 list scroll mousewheel
I have a custom class that extends List which I am using as a container. However, the scroll speed is too fast on the mouse wheel, as in it scrolls loads even if you only move the wheel a tiny bit. I tried adding an event listener to my list for MouseEvent.MOUSE_WHEEL and setting the value of event.delta but this has had no effect. Does anyone know how I can make it slower?My custom class is nothing special, I just created it so I could have a different itemRenders for different item types. It l
Jared
jquery scroll
Check the following link in Chrome: http://www.bavarianblue.com/parts-list/?tags=strutsThe site is totally jacked in IE – need to fix a bunch of CSS.I use the follow Javascript to perform the animation (uses jquery.scrollTo-1.4.2-min.js);jQuery(document).ready(function($) { //required for $ to work in WordPressvar moo = $(“.tags”).attr(“rel”);if (moo == “”){return;}else {var scrolling = $(“.”+moo).offset().top-100;$.scrollTo(scrolling, 800, {easing:’swing’} );$(‘.’+moo).animate({backgroundColor
Bertges
cebirci
javascript jquery facebook iframe scroll
I have a facebook app run inside an iframe. The problem is that if I have a smaller browser window, I scroll to the bottom to the app’s page list and select a new page, it will open in the iframe also in the bottom.I tried to add a #top to the links, linking to a name=”#top” element inside the new page, but this doesn’t work on Firefox (verified) and supposedly IE(not verified yet). For Firefox, I understood it’s a known issue and there are some workarounds to make a “scroll to top” link work, B
Fydo
wordpress wordpress-theming
The following is what I have in my code for a custom theme. However I’m having issues with attaching my custom_script to the footer. 09 <?php 10 function my_scripts_method() { 11 wp_enqueue_script( 12 ‘custom-script’, 13 get_template_directory_uri() . ‘/js/custom_script.js’, 14 array(‘jquery’) 15 ); 16 } 17 add_action(‘wp_enqueue_scripts’, ‘my_scripts_method’); 18 ?>yields the following error for me.Fatal error: Cannot redec
Michelle Cantin
javascript jquery wordpress wordpress-theming
My custom JQuery file as well as Masonry Jquery are linked but not working.You can see that it links correctly in the source file: view-source:http://michellecantin.ca/test/features/notification-boxes/JQuery is also linked and I’m pretty sure it is working.Why aren’t my scripts working?ps: I use it in a wordpress theme.
jsebcortes
wordpress wordpress-theming
I am trying to call a menu to display in a certain place of my page. The theme has a hook above the content that I want to use as the place to display the menu. I do not want to modify the core files of the theme, so the goal is to achieve this using only functions.php modificationsI am adding the following code to my functions.phpOn my menu panel, I already have assigned the menu “categories” to the “catmenu” theme location. register_nav_menu( ‘catmenu’, ‘Categories Menu’ );//adds category menu
Kotheof
php wordpress wordpress-theming entity-relationship lighttpd
I have a problem on a WordPress theme I am developing and I need your help. I get a weird PHP error when I am try to move my functions in separated files. So when I change this://file: functions.php function function1(){ … } require_once(‘functions/other_functions.php’);to this://file: functions.php require_once(‘functions/the_functions.php’); require_once(‘functions/other_functions.php’);//file: functions/the_functions.php <?phpfunction function1(){…} ?>I get an error says:parse error
skaffman
wordpress wordpress-theming sidebar
I’m having difficulty with setting up a second sidebar for my WordPress theme. Here’s the code for function.php:<?php if(function_exists(‘register_sidebar’)){register_sidebar(array(‘before_widget’=>'<li>’,’after_widget’=>'</li>’,’before_title’=>'<h2>’,’after_title’=>'</h2>’,)) ; } ?> <?php if(function_exists(‘register_sidebar’)){register_sidebar(‘home’array(‘before_widget’=>'<li>’,’after_widget’=>'</li>’,’before_title’=>'<h2>
Hooman
php html wordpress div wordpress-theming
I have created three columns like this:<div style=”float: left”>Left Column</div> <div style=”float: left”>Middle Column</div> <div style=”float: left”>Right Column</div>This works well on its own. However the moment I add it to my WordPress page template, by defining a left and right column around the existing main column something unexpected happens:http://venuscloud.com/crm-software/The left column is correctly placed and the middle column is as expected in
Klaster_1
html header wordpress-theming
I am experiencing these bugs, that maybe be affecting the ability of users at modify product quantities on my site.What file should I edit to correct these errors ?HTML1527: DOCTYPE expected. The shortest valid doctype is “<!DOCTYPE html>”. italian-dry-salami, line 3 character 1HTML1502: Unexpected DOCTYPE. Only one DOCTYPE is allowed and it must occur before any elements.italian-dry-salami, line 79 character 1HTML1513: Extra “<html>” tag found. Only one “<html>” tag should ex
RonnieT
php wordpress wordpress-theming category
Looking to pull the category ID of a specific page in WordPress that is listing all posts using that specific category. Tried the below but not working. I am able to get the category name using single_term_title.$category = single_term_title(“”, false); $catid = get_cat_ID( $category );$category is displaying “Entertainment” for example. But I also need the ID of “Entertainment”. How would I go about this?
the_drow
wordpress-theming
How do I edit the class-http.php file in WP 3.1.3. ? I can access the file but cannot edit it. I am getting An Unexpected HTTP Error occurred during the API request. error.
Asif Ali
php wordpress wordpress-theming
My wordpress files somehow don’t know was removed from my server..and then when i upload the files again so it give me this error..i am getting the following error as :Parse error: syntax error, unexpected $end in /home3/nzonesie/public_html/shoppingcart/wp-content/themes/mercor/includes/menu.php on line 17here the menu.php file is online at pastebin as : http://pastebin.com/iKSFt3VDplease..check that and let me know..what is wrong there..!
Web site is in building