Internet Explorer and the html method
Hi again, The following code is working great for all browsers except for Internet Explorer .. I've been investigating and the problem seems to be the html method. How can I change the script for it to work in Internet Explorer also? Thanks in advance! <script src="scripts/jquery-1.3.2.min.js" type="text/javascript"></script> <script type="application/javascript"> $(function() { $.ajax({ type: "GET", url: "myxml.xml", dataType:
.load DIV with id="anyID" which be listened with j
I need load into div some htm doc: [htm doc] <div id="somediv"> bla </div> and i want that this [somediv] will be listened by jquery as .click event. I mean not just load some content like picture, a content which can react like other [dom] elements in html tree by div accessing in id ! i hope for understanding my explanation.
urgent help i`m stuck
hello i`m trying to make a simple jquery code. i have a div that shows an image and on mouseover i want to show details about that image for that i have created a second div that is display hidden it works almost perfect but when i`m going over the image it goes like in a loop it changes display mode to block from hidden from block to hidded and so on.. $(document).ready(function(){ $('.work li a img').bind('mouseenter', function(){ $('.work li a img').append('.features');
[jQuery] Array to JSON?
I have been trying to figure out how I could go from an associative array to JSON. Is there a function for this?
Resizing the container in lightbox.js please help
Hello guys I'm pretty new with this and I was able to resize the images in the css with a width-max; 600px; but the container stay big. How can I resize it in lightbox.js? Here is the code // once image is preloaded, resize image container imgPreloader.onload = (function(){ this.lightboxImage.src = this.imageArray[this.activeImage][0]; this.resizeImageContainer(imgPreloader.width, imgPreloader.height); }).bind(this); imgPreloader.src = this.imageArray[this.activeImage][0]; }, // // resizeImageContainer()
[jQuery] Jquery slider within Jquery Gallerific
Hey everyone, I've only been into Jquery for a few months so I haven't mastered the code yet, was hoping someone could help me. I'm set up using Gallerific just like this -> http://www.twospy.com/galleriffic/advanced.html I am using it to show a portfolio of clients work. However, for each tumbnail, the client has requested a slide show of images (basic PREV / NEXT). Easy enough, I found a script that runs on the latest version of jquery (as I was having problems with others). I am using Easy Slider
[jQuery] TreeView question
I'm looking at using the treeview plugin by Jorn. What I'm wondering is how to get folders added at a particular spot and how to manage folders by dragging them around (or in some other fashion). Perhaps there are some plugins to the plugin, so to speak. Or maybe there is another one better suited to folder management. Could anyone give some suggestions or recommendations? His plugin is working well for navigation, but I need a bit more.
control tabindex after datepicker
I'm using the datepicker and found that after selecting the date it would be great to have the cursor go to the field that the date was entered in. The cursor goes to the top of the page currently. Any idea how to control that? I guess it's a matter of setting focus after the datepicker function finishes but I'm not sure where that is.
[jQuery] jquery tabs
Hi, I am new to jquery but am quite familiar with JavaScript. What I am trying to do is create tabs (using the tabs plug-in) that load dynamic content via AJAX (so it makes a call to a jsp). What this does is this loads a new part of a form. What I want to do is when the user clicks on a new tab, I also want to submit the data that was in the original form. I wanted to do this with one request (i.e. the request does the save, then loads up the new content). I am stuck as how to do this. Any ideas?
[jQuery] jQuery Tooltip Plug-in 1.3 Update
I have recently noticed that version 1.3 of the jQuery Tooltip Plug-in does not work with jQuery's version 1.3.2. Is there a patch available? Is there one on the way? Roddy
[jQuery] Drop Shadows!!!
Hi everyone.. Is the jquery drop shadow worth using? Can anyone direct me ofr the quickest solution. many thanks Erik
[jQuery] Datagrid
Hello. I need advice as to what Datagrid component to use. I need one that supports JSON, and it's considerably updated. Also could use the update, add and delete functions. I seem to have a hard time finding a good library to do Grid work. Ingrid doesn't do it for me and Flexigrid is dead and doesn't work with JQuery 1.3.2 Any ideas are more than welcome!
[jQuery] Positioning Thickbox
Is there a parameter or method for positioning thickbox? The center of the page is usually ideal, but not always. I assumed something like this would work, but it doesn't seem to have any affect. ?KeepThis=true&TB_iframe=true&height=600&width=1000&left=200 Suggestions?
[jQuery] Jquery JQzoom is not a function error, why?
I am working on an ecommerce site that uses smarty tpl files and I am having trouble implementing JQzoom, I have already use a java based menu system so I am aware of the {literal}{/literal} I am trying to use JQzoom for product images and when the product page loads the java isn't working. Firefox error console says. "Error: $(".jqzoom").jqzoom is not a function Source File:/index.php?target=products&product_id=30472 Line: 23" When I run firefox's javascript debugger, jquery.jqzoom1.0.1.js is there
[jQuery] Looping through getJSON data
I am returning data from the .getJSON() function and trying to write is all out in the body. But, for some reason this is not working at all. What have I done wrong? $.getJSON(api_url, params, function(data, texStatus) { // Check our array for (i=0;i<data.length; ++i) { $('body').append(data[i]); } } );
[jQuery] Determine if autocomplete returns an empty list and number of records returned
Hi. I've just started using jQuery Autocomplete a few weeks ago. While using jQuery, I found that I needed to know how many records were returned and also if the result set returned was empty. After searching the jQuery documentation I couldn't find any property or method that returned this value, so I've added that functionality myself and wanted to share it with the group. 1) Determine the number of records returned: I wanted to show the user how many results were returned after they start typing
[jQuery] Problems on IE7
Hi All, I've been literally pulling my hair out with this issue I have with our corporate website. The problem is with jquery light box (jqmodal) that freezes other controls after use in IE7. There seem to be no problem with IE6 or FF. If you go to p$j$m.com (remove $ signs), click Glossary (on top left) close it and then try to use search (top right), it freezes and then throws an error. Like I said, this issue only happens in IE7. I have a feeling that something in jqmodal isnt closing and its
[jQuery] load
Hi, I'm using this function $(document).ready(function() { $('#menu a').click(function() { $('#conteudo').load( $(this).attr('rel') ); return false; }); }); <div id="menu"> <li><a href="#" rel="user.php">Clientes</a></li> </div> <div id="conteudo"></div> for load in div="conteudo" the page on php. But the script jquery in php pager not function.
[jQuery] nyroModal manual opening a page
I have this within my page to open a page manually: $.nyroModalManual({ url: '/thankyouPage.cfm' }); Is there a way to pass URL parameters to the URL attribute? I tried HASH, but that didn't work. Thoughts? Thanks!
[jQuery] jquery parsing problem
If I get the following response back from $.get(..., 'xml'), jQuery is unable to recognize address as an attribute. <?xml version="1.0" encoding="UTF-8"?>\n <device address="http://192.168.1.100"/> NOTE: The '\n' are actual line feeds not, the characters \ and n. I just want to show them for emphasis since removing it in the above scenario allows it to work. If the line feed character is removed so that it is all on one line, then it works fine. If device is split up like <?xml version="1.0" encoding="UTF-8"?>\n
[jQuery] [ANN] jQuery Metadata 2.1
I just released jQuery Metadata 2.1, which adds support for HTML5 data-*.<div> </div><div><span class="Apple-style-span" style="font-family: monospace, Verdana, Helvetica, Arial, sans-serif; font-size: 13px; color: rgb(34, 34, 34); ">Usage:</span></div> <div><font class="Apple-style-span" color="#222222" face="monospace, Verdana, Helvetica, Arial, sans-serif"> </font></div><div><span class="Apple-style-span" style="font-size: 13px; "></span><font class="Apple-style-span" color="#222222" face="monospace,
[jQuery] Click events handling conflict due to prototype?
Hi, I have a simple list inside a table <ul class="col_actions"> <li class="cancel_posting"> <a href="/frontend_dev.php/organizer/cancel-booking/20" linkindex="18">Cancel</a> </li> </ul> I have a ready event handler for click events on the anchor: $j('.cancel_posting').click( function(e) { if (!confirm("Are you sure you want to cancel this booking?")) { e.preventDefault(); } }); However, this event doesn't seem to fire because the table has some prototype controls
[jQuery] what is wrong with this simple load data codes
Hi there, I want to pull data from two input fields add a session (weight) and post them to another file and then pull the returning data. My input fields are: <input type="text" name="ShippingPostalCode" id="ShippingPostalCode" class="inputText" /> <input type="text" name="ShippingCountry" id="ShippingCountry" class="inputText" /> $(document).ready(function() { $("#link").click(function() { $.post("getir.asp?Process=UPS", { WEIGHT: <%=Session("TotalWeight")%>, POSTALCODE:
[jQuery] return value of nested functions is always undefined
Hi, I am just trying to learn a little bit about jQuery. Now I have a problem with returning a value from a function. The following code works fine, when I tested it with alert(price) or any other way of echoing the value directly. But if I try something like var test = getPrice(324), the variable test would always be undefined. function getPrice(id) { $.get('db.xml', function(d){ $(d).find('data').each(function(){ var $data = $(this); if ($data.find("id").text() == id)
[jQuery] calling ajax function from php file
i m using jquery 1.3.2 .and i want to call a function define in ajax file.form php file please tell me how can i do that . thnx in anticipation i need reply as soon as possible
[jQuery] Flash movie not playing in IE6, but working fine in firefox & google chrome
Hi All, I have used the swfobject.js file & its methods to play a flash movie in my webpage. It works fine when I open the page in firefox & chrome but does not work in IE-6. Below is the code i used: <script type="text/javascript" src="<%= request.getContextPath() %>/js/ swfobject.js"></script> <script type="text/javascript"> function loadSWF(url) { var flashvars = { autostart: false, thumb: "videos/call/FirstFrame.png", thumbscale:
[jQuery] shadow box+ajax and i have few queries .plz advice me
Hi, -> How to show the shadow box with the help of jquery. ->how to call ajax.(when i tried $.post ,it requested twice .One with the url i provided and another the current page url).How to resolve this -> How to load the result from ajax ie response text? ->How to show some images while calling ajax and till we get the response. ->how to show validation by changing the border color. .Please advice me.
[jQuery] jQuery Autocomplete - After service call if result is NULL then layer should be invisible
Hello, I am using jQuery Autocomplete Plug-ins(http://bassistance.de/jquery- plugins/jquery-plugin-autocomplete/). Let me explain my problem: If i am looking for "shirt" and star typing "shi" and it showing me 10 results for shirt, but now after "shi" if i type like "shixyzyz" it should clear list and hide autocomplete layer. In my case it is not doing that. Layer stay there with old results. Pleaes note that i am making service call using JSONP and following is my code. $j(".autocomplete").autocomplete('URL/Service.svc/REST/SEARCH/',
[jQuery] XML manipulation
I'm having some real difficulty figuring out how to manipulate xml data with jquery. Here is my situation. I have a hidden TextArea that contains xml data, something like this: <items> <item value='1' text='x'></item> <item value='2' text='y'></item> </items> So, let's say I want to remove the item with value='1'. 1) I grab the value of the textarea: var xml = $("#" + id).val(); 2) I then find the node and remove it: $(xml).find("item[value='123']").remove(); Problem is, it doesn't remove anything!
Simple selector question.
How do I select the top level <li> elements, but not their children <li> elements? In other words, why doesn't this work? $().ready(function() { $('#nav li:not(li li)').mouseenter( function() { $('#nav li ul').fadeOut(0); $(this).children('ul').fadeIn('slow'); } ); }); --------------- #nav { position:relative; } #nav li { float:left; } #nav li ul { display:none; position:absolute; } --------------- <ul id="nav"> <li>1 <ul> <li>a</li> <li>b</li> <li>c</li> <li>d</li> </ul> </li> <li>2</li> </ul>
cycle startup after ajax
hi, I use xajax to populate my site containers and after creating cycle-containers I need to make them running. So I tried to call $('#systemmessages').cycle({ fx: 'scrollUp', timeout: 6000, delay: -2000 }); ...but my browser is teeling me "$("#systemmessages").cycle is not a function", although I DID load the js-file within the header. How can I rebind/reload/activate/whatever this cycle-class after a ajax-call? I already tried a wrapper for my activation but it failed. Thanks in advance! regards
[jQuery] Using embedding youtube videos
Hello. I've been trying to add embedded youtube videos to the carousel but so far without success. The videos are all over the screen, even when I wrap them in div. Has anyone ever done this and could help me? (or maybe it can't be done? Thanks!
jQuery crashing Safari 3.2.2
Hi everyone, I'm experiencing a problem with jQuery v1.3.2, been executed in Safari 3.2.2, particularly with the Validation plugin v1.5.1. When a form is submited and a required text field is blank, the behavior should be: focus on the text field and then display a message saying that the input is required. It works fine with almost every browser, except with Safari that focus on the field and immediately crashes and I have to end the program with the Windows Task Manager. I tried to update the plugin
[jQuery] Trigger jquery event on ajax loaded content
Hi, I'm using the jquery Star-Rating widget. However, I'm returning the set of input radio elements required to display the widget as the result of an ajax call. In order to convert these widgets to the star rating display I need to call the .rating() function based on the selector. How do I get this code to run once I've made the Ajax call? thanks, Steve
Jsonp question
I'm trying to access a json page on a different domain using jsonp. The following block of code doesn't catch any error, but doesn't seem to work either. Has anyone used this before? function ajaxFunction() { var urljs = "http://www.myserver.net/files/progress/jsonTest.js"; document.getElementById("debugText").innerHTML = "ajax called"; try { $.ajax({ url:urljs, dataType: "jsonp", callback: function(){ document.getElementById("debugText").innerHTML
[jQuery] creating a visual frame using jquery
Hi jQuery,<div> </div><div>i'm trying to create a visual frame. My attempt can be seen here:</div><div><a href="http://www.medlemmer.net/test/test_panel_basics.php">http://www.medlemmer.net/test/test_panel_basics.php</a></div> <div> </div><div>I use jQuery to resize the left and right div to the correct height, I can</div><div>see the result is correct.</div><div> </div><div>my question is why do I get gaps at the bottom... it seems to come</div> <div>when I put content inside my visual frame? Can
[jQuery] Carousel with external controls problem
Well, I managed to put 2 "Carousel with external controls" together on a page. Now, I'm facing another problem, that's the external controls. The controls, I can't change the numbers to something else (name of the picture). You can check out what I mean here: http://jasonpang.com/test/test4.html Click on "Personal Projects", you'll see a carousel with external controls with text names, and It's not working, unless it's numbers. Please help :)
jquery cookie plugin
Hello This function works with the jquery cookie plugin (http://plugins.jquery.com/project/cookie) and code from here (http://www.komodomedia.com/blog/2008/07 ... m-details/) <script type="text/javascript"> $(document).ready(function(){ remember('[name=field_name]'); }); </script> It remembers the input field name "field_name". Does anyone know the correct way to add additonal input fields to the "remember" function? Many Thanks
[jQuery] JSP Calling Crystal Report Having Stored Procedure
<div dir="ltr"><div><span class="postbody">Hi i am calling a crystal report from jsp where the crystal report is designed using stored procedure but the report does not get displayed and shows errors my jsp file is Code: <%@ page import="com.crystaldecisions.report.web.viewer.*" %> <%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %> <%@ page import="com.crystaldecisions.reports.sdk.ReportClientDocument" %> <%@ page import = "java.util.*" %> <% try{ Object reportSource = session.getAttribute("reportSource");
[jQuery] Jquery Sound
Hello, I've been trying to get the following working : http://dev.jquery.com/view/trunk/plugins/sound/ However, it only plays about a second to three seconds of the designated sound before shutting off (in FF and Safari) but loads fully in Opera. The music is hosted locally at the moment. Any ideas? The test code I'm using is as follows : $.sound.play('Sounds/Music/OE1.mp3'); TIA, Paul
Next Page