data listing related div/table refresh problem
i have this code $.ajax({ type: "POST", url: "<?=base_url()?>users/register", data: $("#register_form").serialize(), success: function(html){ $( "#users tbody" ).after(html); }, error: function(){ alert('Error'); } }); this
"Include-pages" + "Superfish-Plugin"?
Hi, I have downloaded the Superfish-Plugin (http://users.tpg.com.au/j_birch/plugins/superfish/). It does work so far. But there is one thing, I want to have an answer: Is it possible to add the following code with the "include-tag"? <ul id='cat-menu' class='sf-menu'> <li class='cat_item<?php if(is_home()) echo ' current-cat'; ?>'><a href='<?php bloginfo('url'); ?>'>Startseite</a></ <?php wp_list_pages('title_li='); ?> </ul> Doing this by the following way, the subpages were not displayed
conflict between mcdropdown.js and interface.js
im using both plugin in my website For purpose of debuging iv test each separetly... and works well But together ...the mcdropdownmenu click event Activate wherever i click on my page this is my site http://www.ma117.info/index6.html even a stripdown minimal site to test http://www.ma117.info/index7.html Someone have a idea to solve this conflict Thanks
Vertical Tabs - how to force the featured content to push the footer
Evening, I am building a site using effigydrums' plugin: Vertical Tabs Here is a stripped back page illustrating my problem: http://www.electroglass.co.uk/engineering.html I would like the featured content to 'push' down the footer rather like this accordion does here: Amethyst Music. At present the footer will only clear below the tabs not the content. It seem that I will have to define a static height for the vertical tabs on each page (large enough to accommodate the largest content), which means
jquery form send only element into data: attribute
Sorry I have a problem, i have this form <form id="main_form" name="main_form" enctype="multipart/form-data" method="post"> <div class="content"> <ul> <li> <h3>Cognome</h3> <input type="text" id="main_cognome" size="20" maxlength="30" /> </li> <li> <h3>Nome</h3> <input type="text" id="main_nome" size="20" maxlength="30" /> </li> <li> <h3>Codice
Ajax error causes app to become unresponsive
When an ajax error occurs, the boolean isPageTransitioning does not get reset to false. So after the error occurs, jqm still thinks its in the process of page transitioning. Because of that, links stop working. Adding the following code seems to fix the problem...
Can't change width and height and problem with hover in superfish-vertical menu
Hi, I am new to Superfish vertical nav system and need help to code the look of the menu. I can't figure out how to get the width and height to change how to keep the hover color on the text of parent once the cursor has moved to the child level. I am using the superfish.css and superfish-vertical.css Here is the url of what the menu needs to look like using an old menu system and how it needs to operate: http://www.acep-cape.ca/EN/NVersion_ecNews/ Here is the code of the old menu in js but
.css does not update in firefox? works in chrome and safari
Here is a small demo of a iphone like checkbox I want to use in some forms. the problem is the .css({'background-position-y':'0px'}) or .css('background-position-y', '0px'); won't work in firefox? <html> <head> <style type="text/css"> ul.check-box li{ list-style:none inside none; v-align: center; } li.on-off{ background: url("http://static.blacknight.ie/gibo/images/checkbox_on_off.png") no-repeat scroll
JQuery validation and AJAX call parsererror
Hi All, I am using the JQuery 1.5 and JQuery validation 1.7 and found a very strange problem: If I load the jquery.validate before ajax call as: <script src="../javascript/jquery-1.5.min.js" type="text/javascript"></script> <script src="../javascript/jquery.validate.js" type="text/javascript"></script> <script type="text/javascript"> $.ajax({ url: "../webservices/Test.asmx/Test", dataType: "json", type: "POST", contentType: "application/json;
Defining methods for a plugin
I'm not very confortable with the proposed solution to add methods to a plugin. According to http://docs.jquery.com/Plugins/Authoring, you should use the pattern .plugin("method", options). Why not creating a generic api plugin to be able to use this structure: var api = $(...).plugin().api(); api.method(options); The generic api plugin should just return this.data('api'), and the plugin developer would be responsible of setting this.data('api', methods) when necessary. Regards, G.
How to do several pages deep navigation?
Hmm, I'm not sure if I am doing something wrong here. This is the structure right now on the app that I am building: index.html => list.html => list2.html => detailed pages all defined on list2.html - So basically you click on index-page to choose a type of list (ex. year-list) - list.html consist of a list with date-ranges (1901-1920 etc.) - list2.html consists of a list if names for those years (around 200). It also has a a <div data-role="page" id="che850"> - page for each of those 200 people
jQuery UI Grid component?
Hi everybody, I was wondering if jqueryUI was about to release a kind of "grid" component (like jqgrid or similar) in its future release, or if it was possible to create such a component with all the already existing tools provided by jquery and jqueryUI
perl $ interpolation prevent function
Hi there, I got a question as I just started working on JQuery today. The problem is that when I try the following: <script type="text/javascript" charset="utf-8"> $(function() { $('.date-pick').datePicker({autoFocusNextInput: true}); }); </script> inside a perl CGI script, the $ sign is gone as the perl interpolate the $ sign as variable. Any input will be greatly appreciated! Thanks. Best, Peter
Event not working
I am having a problem with some code that I am working on. The code is shown below. Basically, I have a page that if you click on one of the links, it uses the .load method to pull in a php document. The php document displays a form (since nothing has been submitted to it yet) that has an input box and a button to launch a search. I attach a click event to the button, however, when I click it, nothing happens. I monitored the script in Firebug, and it appears that the event handler does get attached
Is there a way to do transition to a page that is loaded through rel="external" + image question?
Hi, I have a page which contains a lot of <div data-role="page" id="home">-pages and each id is a unique identifier that I am using in another list to link to using page.html#unique_id. To make that work I use rel="external" so the page is reloaded. Unfortunately that means I loose the transition from the previous page. Is there any way to do a transition when using rel="external"? I'm still on the local site but since I cannot access an id further down in the page without rel=external I'm a bit
Dialog Confirmation before show Datepicker popup
Hello, I'm trying to show a dialog confirmation when the user click on my date's input, and if the user choose "No modification", i would not show the datepicker popup. I searched about beforeShow options and onclick event on my input, but no results. Can you help me, I'll take every ideas and suggestions ? Thanks, Thec,
post with jquery 1.5.1 and IE6
Hello, I got a problem with the jquery post method. I have these two scripts: The main site <?php echo "<div style='border:solid 1px black;' id='in'>test</div>"; echo "<div style='border:solid 1px black; background-color:red' id='out'></div>"; ?> <script type="text/javascript" src="../intern/jquery/jquery-1.5.1.js"></script> <script type="text/javascript"> $("#in").click(function(){ $("#out").html("lade..."); $.post("post.php", function(data){ $("#out").html($(data).find("text").text()); }, "xml");
Internal Server Error 500 thrown from perl script ...
I have a perl script which is called via Ajax. It simply writes 3 values to a database. The code works fine (values get written successfully) but I get an "Internal Server Error" thrown. The Errorlog says "premature end of script headers". There was no problem with the application - it works as required and has for a few months - but I noticed the error via Firebug when testing something else. So I started stripping perl out of the script in an attempt to locate the problem .. and continued till
JQuery in Web Project
Hi, i am creating a dynamic web project using spring MVC. In the usual hierarchy, ie, "WebContent/WEB-INF/views" folder contains the jsp/html pages. So i tried to put all files of the jQuery (js,css,jsp) in the view folder itself. It is finding the javascript files, but it is not finding the images in the image folder. the path given in the css file is "images/imagename.jgp" Please look into the matter and let me know asap! Thank you! Utkarsha
Insert a new html element before another
Hi. I have a td like this: <td id="info"> <a href="#" id="linkfirst"> <span id="first">First</span> </a> <a href="#" id="linkprevious"> <span id="previous">Previous</span> </a> <a href="#" id="linknext"> <span id="next">Next</span></a> </a> <a href="#" id="linklast"> <span id="last">Last</span></a> </a> </td> I want to remove the two first links and leave only the <span> tags. I remove the first two elements doing this: $('td#info a').first().detach();
Source Code from Iframe (same domain)
Hi I would like to view the source code from an iframe using Jquery (same domains) in an alert and also place it inside a text area. I am currently using the following code: <script> alert($('#myIframe').contents().find('html').html()); document.searchform.txtarea.value=$('#myIframe').contents().find('html').html(); </script> The code works perfectly for Internet Explorer but does not work for Chrome. Also it only works on my local computer but doesnt actually work at all for IE or chrome when
Jquery tablesorter plugin and custom parser for streetname + streetnumbers
Hello, I'm using the jquery.tablesorter to sort my tables. You can make custom parsers for the plugin, which is also great! Now i'm facing a little problem: I want to sort by streetname and streetnumber. This would be easy if the streetnumber only contained numbers, but they can also contain characters. For example: Lindelaan 8a Lindelaan 8b Lindelaan 8c Lindelaan 18 Lindelaan 32 Lindelaan 86 I can create a custom parser like this: $.tablesorter.addParser({ id: 'address', is:
Effects with 2 divs and after one only function
My problem is simply. I have 2 divs with class="a" and take them: var div_elements = $("div.a"); Then I start an effect: div_elements.fadeOut(300, function() { alert(1); }); OK. But I only want to make 1 alert, not 2. How can I make only a one function after than execute a 2 divs with a 2 effects??? Thank's a lot!
hi
hi am jenny new here nice place for sharing Jennifer Parker
jquery 1.5 and IE 9 RC, won't work
When trying to use jquery 1.5 with IE 9 RC I get an error saying that at line 5460, character 4, propery or method getElementsByTagName is not supported. Is this a jquery bug or an IE one?
Modelwindow not redirecting to the specific url provided in IE
I am trying to open a link in a model window which will first redirect to authentication page and then again it will redirect to the url provided by me(eg:- www.yahoo.com\login\me\myvideos).. In FF and chrome every thing works fine. But in IE first redirection to authentication page is happening but after that redirection to the url provided by me is not happening, instead it is redirecting to the homepage(eg:- www.yahoo.com\) of my given url.. Please share your thoughts.. Thanks, Hardik
jcarousel, problem at 16th click on next button
I use jCarousel, with prev/next button as image. function mycarousel_initCallback(carousel) { jQuery('#mycarousel-next').bind('click', function() { carousel.next(); return false; }); jQuery('#mycarousel-prev').bind('click', function() { carousel.prev(); return false; }); }; // Ride the carousel... jQuery(document).ready(function() { jQuery("#mycarousel").jcarousel({ scroll: 1, initCallback: mycarousel_initCallback, //
ui datepicker click problem
Hello everyone, When I click the input field to display the datepicker panel in the firfox, the whole page will change to a blank page for a few microseconds. does anyone know how to resolve this problems, Many thanks for your help.
Execute JS script when calling another file using AJAX call
Hello, I'm encountering a small problem. I have an plain HTML file (it's for testing) where I have a link, when clicking on the link a $.load function is execuded to load another HTML file, this is working. BUT in that other HTML file I have another Javascript (add this share button),but one is working because it's not being parsed through DOM. Tried to put the javascript in the first file, but this doesn't work either. My best guess is to bind the javascript, no? Anyone can help me out in this situation?
Custom rule into jQ.validate's 'rules' obj breaks validation on submit
When I add a custom validator to the jQuery validator's rules collection, it breaks the validation that is supposed to happen when I click the submit button. When the submit button is clicked and no form item, input nor select has been visited (made active, then blurred), the submit handler doesn't catch the validation errors and shows no error messages, but submits the form instead. If I remove the custom rule, it works, i.e. if I remove lines 4-12 inclusive, in listing 1, the error messages for
Problem with XML and Jquery UI Autocomplete
Hi guys. I was hoping somebody would be able to help me. Basically I am trying to use the Jquery autocomplete with an XML datasource and cannot seem to get it working. A sample of the XML is as follows: --------------------------------------… <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE sitelisting SYSTEM "schema/sitelisting.dtd"><sites> <site> <id>8</id> <site_name>Site 1</site_name> </site> <site> <id>7</id> <site_name>Site 2</site_name> </site> <site> <id>6</id> <site_name>Site 3</site_name>
Opening a TCP connection using jQuery....
Is it possible to establish a TCP/IP connection using jQuery?
Append method without moving?
Hi. There is no method to append an element to another without moving? I think that the only solution is to use .html() method. Is this true?
Changing URL after ajax event.
So I have a navigation I am working on that could be adaptable to any site. You click on a link and new content arrives with fade in / out. Pretty standard. However, I would like the URL to change so it can be copy/pasted and/or bookmarked. The code below works, but the fades don't work. Also, I know this 'breaks the back button' and I plan to tackle that next. $(document).ready(function() { $("#nav a").click( function ( event ) { event.preventDefault(); if ( !$(this).is(".current") ) { var url =
jQuery Address history and manual address
Hi. I have implemented jQuery Address for deep linking and it is working well. The only problem I haven't been able to solve is manually typed addresses. Let's say someone is browsing mysite.com and then they click on a link, which takes them to mysite.com/#/about.php. Both those entries are in the browser's history, but if they now went in and manually entered mysite.com/#/contact.php. Well, instead of adding the new page to the history, the new page would replace the about.php history. So
calender help can anyone help ???
hi i need to do a concept using calender where i need to put a list of holidays . the holidays days alone should be an image and when i click an the holiday a new pop up window should open up with the name of the holiday.. can anyone help pls ?????????????????
Need help with lavalamp
Hi, I have just played around with lavalamp and finally got it close to my liking.. Now my menu is multi-dimensional and the following background also attatches itself to the child elements... Is there a way just to keep it locked onto the top elems only? so it only affects the parent UL LI tags and not any children UL LI tags? thanks
jQuery ColorBox onOpen event fires after overlay is displayed
Hi, When using onOpen event, it fires after overlay is displayed. So I was wondering if there is a way to hook my code to an event that will fire before anything else happens. I think it will be possible to handle "onclick" event and then cancel further processing, but I would like to have a cleaner solution. Thanks
jquery.hotkeys (https://github.com/jeresig/jquery.hotkeys) not working with live event?
Hello, normally one would .bind() all keydown mappings, but i need some .live() keydown mappings. Does .live() support special handlers like this (in jquery.hotkeys.js)? jQuery.each([ "keydown", "keyup", "keypress" ], function() { jQuery.event.special[ this ] = { add: keyHandler }; }); In my case i try to setup the live event as follows: $(":input").live('keydown', 'esc', function(){ $(this).blur(); return false; }); That doesn't get triggered at all. Sorry for editing this entry multiple times.
Model window using iframe not redirecting to the specific url provided in IE.
Hi, I have a link on click of which i am opening a model window.. I am providing one specific url.. It works fine with FF and chrome.. but in IE it doesn't work, it is redirecting to its parent homepage url.. If i try to open in a new window by using same url it works fine in IE also but not with Model window.. Please share your thoughts and give me your fruitful suggestions asap. Thanks, Hardik
Next Page