jquery,firefox,scroll,offset,jquery-ui-sortableRelated issues-Collection of common programming errors


  • Chinchila
    javascript php jquery load
    I have that code:$(function(){$(“#dirr”).click(function(){$(“section[name=files]”).load(‘pages/files.php?’ + $.param({dir: 2}););}); });and that error on page:Fatal error: Call to a member function prepare() on a non-object in \pages\files.php on line 51UPDATE:<? if($_GET[‘dir’] == “”){echo ‘<form id=”dirform” method=”POST” action=”?f=createdir”><label>Create directory:<input type=”text” id=”cdir” name=”cdir” required><input type=”radio” name=”dirpub” id=”dirpub” value=”1

  • meagar
    jquery internet-explorer galleria
    Galleria v 1.2 works fine in FF, SF and Chrome, but it raises this message in all IEs “fatal error: no theme found.” Anybody seen it before?

  • 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://

  • Mohammad
    firefox homepage
    Whenever I open firefox , it tries to open http://users.skynet.be/mgueury/mozilla/no_tidy_lib.html. The above website isn’t my home page , Google is my home page.How can I fox it ?

  • Colum
    firefox
    Does anyone know of what file Firefox uses, on a mac, to trigger a startup in safe mode? I am on a mac, and I have not been able to find out what Firefox does to mark that it needs to startup in Safe Mode. There has been methods to bypass safe mode, but I am looking for a way to nip it in the butt before the program launches.Thanks

  • jokerdino
    firefox launcher quicklists user-profile
    I have three separate Firefox profiles, and while I have no problem running them at the same time (via ProfileSwitcher add-on), the default behavior of the Unity Launcher’s Firefox icon is to launch the profile that was used last.Most of this time, this is fine, but sometimes I’d like to select which one I’d like to run. I am thinking that a quicklist menu on the Firefox launcher is a better way to do this than having multiple launchers.However, I’m not sure how to do this.

  • Vikas
    firefox webdriver
    Selenium jars: 2.34, Firefox version: 22.0Please find below code:FirefoxProfile firefoxProfile = new FirefoxProfile(new File(“C:\\Users\\admin\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\dww46q4q.default”)); WebDriver driver = new FirefoxDriver(firefoxProfile); driver.get(“https://www.google.com”);Firefox browser launches, however it is not navigating to google.com and after some time i am getting this exception: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127

  • honestann
    javascript firefox firefox-addon 32bit-64bit jsctypes
    I am creating a firefox extension for linux firefox on 64-bit ubuntu. The extension is a javascript program that calls functions in my shared library (libcog.so) written in C via the js-ctypes mechanism.I got the basics of the extension working, but now that I need to call functions in the libcog.so shared library via the js-ctypes mechanism, several issues are unclear.I can’t make the firefox browser tell me whether it is a 32-bit or 64-bit mode application!Later: I think I figured out this fi

  • User11111
    java eclipse firefox selenium selenium-webdriver
    Currently working on Selenium WebDriver and using Java. Getting the problem while running the code and it is showing the following error: org.openqa.selenium.InvalidElementStateException: [Exception… “Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsINativeMouse.click]” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: file:///C:/DOCUME~1/amth/LOCALS~1/Temp/anonymous1356356134669446179webdriver-profile/extensions/[email protected]/components/command_proc

  • user2658948
    javascript google-chrome firefox google-closure
    I have a form which I need to dynamically populate the labels of (which was generated with Google Closure). I got it working in chrome, but when I tried it in Firefox it wouldn’t work, and fails with the following error:TypeError: this.document.getElementById(…)[$i].labels is undefined ….document.getElementById(‘dialog-form’)[$i].labels[0].innerHTML = “$” + varNewPr…Examining through the Firebug console I get the following error:>>> this.document.getElementById(‘dialog-form’)[4]

  • SPI
    javascript jquery firefox safari internet-explorer-9
    I am a predominantly PHP developer. I realize in this day and age specialization in one scripting language doesn’t cut it, but the fact remains that my skills at JavaScript and jQuery are pretty green. I am a novice at best. I can create my own code but Cross Browser compatibility remains a huge issue with my work in JavaScript.Anyway, I have a script that filters products according to categories/subcategories. This is how it works: you select a category and the javascript in the background does

  • michas
    django internet-explorer firefox https applet
    We have developed an analytics application that use a special Java applet (developed by IBM) to view some data. It’s a Django application that runs on Apache. Everything worked fine until we moved to SSL. The behavior is very strange and we are confused and a little bit worried how to make the applet work on HTTPS. Ok, I have read many threads about security updates that were introduced in JRE 7u51 (Java JRE plugins) but I think that this is not the reason of our problems. My current environment

  • Mark Mayo
    javascript security firefox google-chrome clipboard
    since I have looked around and could not find any nice solution for copying text on firefox or chrome to clipboard. However, I have tried some codes provide by firefox in its developer site, but still not work and there was one errror with permission denied. Here is the code I tried the last minute. var copytext = “Text to copy”; var str = Components.classes[“@mozilla.org/supports-string;1”].createInstance(Components.interfaces.nsISupportsString); str.data = copytext; Does anyone ha

  • 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

  • hol
    php mysql arrays offset
    Fatal error: Cannot use string offset as an array inC:\xampp\htdocs\includes\categories\categories.php on line 12$categories[$parent][] = $row;categories.php <?php$sql = “SELECT catid, catname, parentid FROM categories”; $res = mysql_query($sql); while ($row = mysql_fetch_assoc($res)) {$parent = intval($row[‘parentid’]);if (!isset($categories[$parent])) {$categories[$parent] = array();}$categories[$parent][] = $row; }?><table border=”0″ cellpadding=”10″ cellspacing=”0″><tr>

  • j0k
    time latitude-longitude offset
    Is there a way to estimate the offset from GMT (or time zone) from a latitude/longitude? I’ve seen geonames, but this would need to work long term and we don’t really want to rely on a web service. It’d just be used for determining whether to display “today” or “tonight” when giving information to various users so it wouldn’t need to be too accurate (an hour or two off wouldn’t be bad).

  • Shawn
    pagination facebook-fql limit offset
    FQL is hard. Making sure it returns all possible results is one of the most mystifying exercises I can think of. Consider these queries, that only differ by limit and offset, and their returned results:SELECT caption FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner = me())AND 0 < created AND created < 1299952078 LIMIT 400 OFFSET 0Returns 400 results. Okay, cool.SELECT caption FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner = me())AND 0 < created AND created < 129

  • axelra82
    jquery jquery-animate offset
    I’ve been trying for hours to understand why the following occurs when I click the “menu trigger”The “menu trigger” works as intended (e.g. clicking the tree menu icon makes the menu go up and down) when the “content” is top 0 When I scroll the “content” the “menu trigger” stops workingCan anybody help me understand why the “menu trigger” works fine when nothing is scrolled, but stops working as soon as I scroll the “content” box.The top element is fixed and set to top 0, so it shouldn’t be affe

  • loxxy
    javascript css margin offset page-layout
    Why document.body.style.margin returns me nothing in chrome and firefox if the style=”margin:[some] px” is not set for body. Now suppose I want the margins of body using offsetParent.offsetLeft css property by some child Element of div.It gives me 0px by default.Well if the body element is initially at default 0px margin then why does my html visual elements are displayed with some margin from left of the page which comes out to be 8px.Is the body margin 0 px only??HTML :<div><p>hell

  • ddriver
    c++ c memory offset resolve
    void *p = malloc(1000); *((int*)p) = 666; *((int*)p+sizeof(int)) = 777; int i; for (i = 0; i<10; ++i)printf(“%d “, *((int*)p+sizeof(int)*i));Is the manual offset being resolved at compile time or does it add overhead of performing arithmetic operations during runtime?

  • Anirudh Tomer
    c offset segment memory-address
    So this is the code I am trying to run:#include<fcntl.h> #include<stdio.h> #include<errno.h> #include<string.h> #include<unistd.h>int main(){int ret;ret = read(STDIN_FILENO,(int*)2000,3);printf(“%d–%s\n”,ret,strerror(errno));return 0; }and this is the output I get at the terminalanirudh@anirudh-Aspire-5920:~/Desktop/testing$ gcc test.c anirudh@anirudh-Aspire-5920:~/Desktop/testing$ ./a.out lls -1–Bad address anirudh@anirudh-Aspire-5920:~/Desktop/testing$ ls a.ou

  • Jeffro
    iphone xcode offset symbolicate
    The crashlog on iTunesConnect for my XCode 3.2.5-built application shows method names, but not line numbers. For example, in the abridged crash report I’ve pasted in below, it shows this:0x000f5ef8 -[MyTableViewController dealloc] + 120 There are two things here that are puzzling me, upon which I’d appreciate some insight. The first is why the raw .crash file coming from iTunesConnect is already partially symbolized: it shows the class and method name, but not the source code file and line nu

  • Roko C. Buljan
    jquery cross-browser offset mousemove
    HI FRIENDS!I have a strange problem here: I created today a mousemove horizontal gallery.The gallery works PERFECTLY locally, online, but only in: Safari, Opera, Mozilla, Chrome. IE wan’t even think about moving my gallery.working JSfiddle DEMOI just can’t figure out what is happening.Here is the [JSbin][2]. Even if it does NOT work on theirs pages, COPY IT LOCALLY to get the point…In any case, here are my codes:<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.o

  • noisy
    android crash shared-libraries offset
    In my project after crash I got log like thisI/DEBUG ( 1133): r0 0000deed r1 00001234 r2 deedbeed r3 00000000 I/DEBUG ( 1133): r4 befab4c0 r5 00000007 r6 befab548 r7 4214cb20 I/DEBUG ( 1133): r8 befab49c r9 4214cb0c 10 4214caf8 fp 81da5368 I/DEBUG ( 1133): ip 80003108 sp befab440 lr 845133d4 pc 844ed8f0 cpsr 60000010 I/DEBUG ( 1133): d0 7165722068736175 d1 4320585858585865 I/DEBUG ( 1133): d2 006f006900740073 d3 00200030003d0074 I/DEBUG ( 1133): d4 4214e9

  • revaxarts
    jquery jquery-ui jquery-ui-sortable
    I’m trying to load some html in an iframe and make certain elements in that html page sortable:jsfiddleJS:var _iframe = $(‘iframe’); var containment = _iframe.contents().find( “modules” ); if(containment.data(‘sortable’)) containment.sortable(‘destroy’);containment.sortable({stop: function (event, ui) {console.log(‘STOP: I am never called’);},start: function (event, ui) {console.log(‘START: I am called with a delay!’);},containment: containment,placeholder: “sortable-placeholder”,items: “> mo

  • J. Bruni
    jquery jquery-ui sortable jquery-ui-sortable
    The documented way seems to be:$(‘#sortable’).sortable(‘option’, ‘placeholder’);But this returns an object to me, instead of the string I used at the configuration options.I can get the value of the other config options this way. For example:$(‘#sortable’).sortable(‘option’, ‘opacity’);The code above returns to me the exact value I informed in the sortable configuration options.It seems a bug to me. Anyway, if I can’t get the placeholder value using the “normal” way, is there any other way to re

  • Kevin
    jquery jquery-ui jquery-ui-sortable
    I’m still a bit new on jquery selection syntax (and jquery in general). I’m not exactly sure how to get this call to work.I’m using a function that gives me an event and ui. I’m using the stop event in sortable and I’m trying to get the nth-child (first) from this element and then trying to clear it’s class. right now I have:stop : function(event, ui) {$(ui.item):nth-child(1).removeAttr(“class”);}But this gives me an unexpected ‘:’ error. What’s the correct syntax for this?

  • Joel Harris
    jquery-ui jquery-ui-sortable droppable jquery-effects
    I have a jQuery UI tab control. It contains blocks that can be sorted. They can also be dropped on other tabs. When a block is dropped on another tab, I want to use the slide effect to hide the block from the current tab before displaying it on the new tab.Here is a demonstration of the problem on jsfiddle (Follow the directions on the jsFiddle link to duplicate the problem)The jsFiddle demo initially shows a working state for the problem. It uses the standard .hide() method to hide a block.

  • Stephen
    jquery internet-explorer-8 internet-explorer-7 cross-browser jquery-ui-sortable
    Getting some rather unusual errors when sorting in IE 7 and 8 (works fine in 9).http://jsfiddle.net/pC5qg/Jquery:$(“.first, .second, .third”).sortable({update : function (event, ui) {var listItem = $(this).sortable(‘toArray’);var string = “navOrder=1&listItem=” + listItem;} }); HTML:<ul class=”first”><li id=”4″>Learn More About The Law<ul class=”second”><li id=”49″>ACA Overview</li><li id=”45″>Timelines<ul class=”third”><li id=”31″>Already in

  • earachefl
    jquery jquery-ui-sortable nested-sortable
    I have a nestedSortable list in which I’m disallowing the nesting of items with the same name (could be id, whatever). I’m using the beforeStop() method to get the name of the current element and the name of its parents parent (because when it’s nested, it gets the form:)<ol class=”sortable”><li><div id=”1″>Item</div><ol><li><div id=”2″>Item</div></li></ol></li> </ol>Notice that I’m using the div element as the handle. My co

  • user1038814
    jquery jquery-ui drag-and-drop jquery-ui-sortable
    I have two query lists which are sortable #sortable1 and #sortable 2. http://jqueryui.com/demos/sortable/#connect-lists.you can drag and drop list items from sortable1 to sortable 2. However, if an item in sortable 1 contains the class “number”, I want to prevent the drop on Sortable2 and thus make the dragged item drop back into sortable 1. I have used the following on sortable2:receive: function (event, ui) {if ($(ui.item).hasClass(“number”)) {$(ui.item).remove();}but it deletes the list item

  • Diff.Thinkr
    jquery-ui jquery-ui-tabs jquery-ui-sortable
    I’m having 2 sets (set1,set2) of tabs (all created using the add method). I also have both sets to sortable and using the connected-list option of sortable, I’ve made it possible to move tabs from set1 to set2 and vice versa.But this doesn’t move the div containing the content of the tab. So, I wrote the following function to move the div also (called when the over event of sortable is triggeredmigrateTabDiv:function(e,ui){console.log( ui.item.find(“a”).attr(“href”) );console.log( $(this).parent

  • s0mmer
    jquery jquery-ui table jquery-ui-sortable
    Im using jQuery UI sortable on a table.My javascript:$(“#linksSortable tbody”).sortable({handle : ‘.handle’, //helper : fixHelper,update : function () { var order = $(‘#linksSortable’).sortable(‘serialize’); //$(“#info”).load(“ajaxtest.php?”+order); alert(order);} });My table:<table id=”linksSortable”><tbody><tr id=”listItem_1″><td>1969</td><td>Slaughterhouse-Five</td><td>A+</td></tr><tr id=”listItem_2″><td>1952</td&

  • hochl
    javascript jquery jquery-ui jquery-ui-sortable
    I’m using jquery ui to make a sortable list but it doesn’t work and I just can’t understand why. The ul element receives the class ‘ui-sortable’ but nothing happens.I made an example as the original js has many more unrelated objects.The example is here. To make it ‘work’ just click the button with ‘editar’ in it.

Web site is in building