Example needed for $('#someID').load('externalPage.aspx', { limit: 25 })
Hello everyone, This is my first post to the forum. I am fairly new to jQuery but I love it. In the subject of this post I added a simple example of what I am looking for. I saw a quick video on plural sight of a simular example where the guy codes the logic in a aspx that will be be used when the call is made to that page. So for instance in my example in the subject, I prosume that I will have to code the logic behind the 'limit' call. Can anyone please point me to a good example on how to do this?
Brain Dead Embedded Browser Won't Load JS Files Larger Than 32K
The question is, does anyone have a nicely split up set of minified jquery files that can be loaded one after another to get the complete library? And no, the browser does not have decompression capabilities. And yes, the browser will handle gobs of JS files, just no file that goes past a 32K boundary. It is an embedded gui for specialized media. Thanks!
Problem using JQuery XML and PHP
So i have an HTML page which contains this script: <script type="text/javascript"> $(document).ready(function(){ $.ajax({ type: "GET", url: "http://meteo.uniparthenope.it/prods/timeseries._dev.php?region=ca001&when=now", dataType: "xml", success: function(xml) { $(xml).find("time").each(function() { $("#output").append($(this).attr("date")
Passing Variables between Pages
I am new to jquery. The project reuirements specify using jquery and java scripting. I have several web pages that set variables. I need to access these variables on another page. What is the best way of doing this? Can yoy give me an example? Thanks.
Using jQuery with C#
SharpKit has an open-source C# interface into native jQuery So any C# developers among you guys might find it helpful for getting to know jQuery, and use jQuery in a more familiar environment. The code is open-source and well-documented using xml documentation. Check it out, it's available here: http://code.google.com/p/sharpkit/source/browse/#svn/trunk/SharpKit.jQuery SharpKit compiler enables C# developers to use this code in order to generate proper JavaScript using only C#. The compiler is free
jquery conflicts
I'm having issues with two jquery scripts working together....Fancybox and this one: http://www.i-marco.nl/weblog/jquery-accordion-3/ I can get one or the other to work but not both. Any help would be greatly appreciated. Thanks
AJAX, PHP and empty variables
Hi all, I'm using two different hosting for developing an AJAX based application. The first hostng is at my home (for develoment), the second one is provided from a paid hosting service (for production). My problem is that in the production hosting I can't see the value of the variables I send via AJAX. There is the code: $.get("AJAXChangeOrderStatus.php", { orderid: order, newstatus: 1 }, function(data) { ...And in the AJAXChangeOrderStatus.php i get the values in this way: <?php include_once
JQuery, divs and positioning
I'm looping through an array of information to represent it on the screen in separate divs. $("#timenavigation").append('<div id="'+ arrayYears[i][0] +'" class="' + arrayYears[i][0] + '">'+ arrayYears[i][0] + ':' + thisCount + '</div>'); $("." + arrayYears[i][0]).css({ top: 20, left: i *100, height: sizeOfDiv, width: divWidth, backgroundColor: '#d'+aL2[i]});The index.html: <div id="timenavigation" ></div> </div> It outputs: What am I doing wrong? Why aren't the divs stacking side
point and click style walkthrough and interactivty using static images
I understand that the very essence of the web is point and click however what I'm trying to achieve is a navigation system using a series of static 3D Render images have them seamlessly stitch together creating a pseudo walk through effect. For example if a user clicks on a hot spot e.g. a drawer it will fetch the same image but with the drawer open. or if a user wishes to go 'deeper into the scene e.g. a walk-through style effect then they would click on the hotspot and the image presently loaded
Context menu using jquery implemented in HTML
Dear Friends Greetings to you, i want to implement context menu creating using jquery in html advance thanks
ajax async false
Hi I'm new to jQuery and looking for some advice. I'm loading data into a number of select boxes. The data of each select box is loaded dependent on the selection of the previous. What I was experiencing was that sometimes the data would be slow to come through and the select box would be loaded without being populated with data. I got around this by adding an async:false parameter. I believe this is bad practice though? What is the alternative approach to using async false? Code is below:-
Returning CSS border attributes using jQuery
I have CSS defined as: #container { width:400px; border:1px solid red; } I was not able to get the value using $("#container").css("border"), but $("#container").css("width") is ok, any idea?
Selecting Objects by .data("xy")
Hello everybody, i want to append a click event to all of the children of "t" that .data("xy") = true. How can i select only those children with jQuery? Sry, i'm a newby ... jQuery(t.children()).click(...); thx for any advice, haemse
Creating <p> with jQuery into .html-file
I have web-project and I was wondering if this is possible with jQuery. I know it can be done with PHP, but it would be quite hard with my experience. In webpage you would have textform and submit-button. When you press submit, text from textform will appear into web-page inside <p>-tags. Sorry for bad English..
Using $(document).ready(function() on elements that are created via DOM modification ?
HI all you jQuery gurus out there, I have a very detailed question and I hope I'll be able to explain it properly and also get an answer: I use the following code to add a "click" behaviour to an element: $(document).ready(function(){ $("#element_id").click (function(){ ...... do something .... }); });So far so good, works fine. I also use the following code to clone a node and append it to the DOM: function addRowJob(r){ var root = r.parentNode;//the root var allRows
how to do like this?
when I open the indexpage,the top block and bottom block is empty.and the mouse over,the top block and bottom block slide in. how to do it..thanks for reply.. thanks for the reply,another question: jQuery(document).mousemove(function(e){ e.preventDefault(); jQuery("ul#nav").animate({marginTop:"0"}); }); I use like above. the slidein is ok,but can not control the progress,i mean when i refresh the page,even i did not move the mouse,and the top nav block automatically slide in..what is the matter.thanks
Jquery calling Second?
Hello, I have a very simple question that after looking through the API of jQuery and through this forum, I"m a bit stuck on... I'm trying to target the second element of a ul based menu. I have code that works for the first. This basically opens a sub ul menu on page load. I want the second to load on another page. HTML Example: noaccordion : no accordion functionality collapsible : menu works like an accordion but can be fully collapsed expandfirst : first menu item expanded at page load <ul id="menu1"
.ajax and xml
I am using a form to build up some xml that gets post off to php for handling. I am bring in an empty xml template into a textarea ( display:none ) and attempting to update some of the node values based on values from the form. The issue is I cannot update the text for the discription node and have the updated version passed to the ajax post. <form id="form1"> <input type="text" id="description" class="required"> <textarea id="siteData"><work><description></description></work></textarea> </form>
Dynamic form field generation
What I'm trying to do here is to create an editing form based upon the field descriptions extracted from a database, and use jQuery (e.g., datepicker) to handle the input. So, using the datepicker example, I create an input item, make it a 'text' type, give it a name and an id, and then use $('#'+textfld.id).datepicker({ ... }) to set it up. This is NOT done at $document.ready time, but while running the form's JavaScript, so I don't know if that's the problem or not; I can't see how to use $document.ready
How to remove jquery tools: apple overlay effect and use jquery's default fadeIn?
Hi there, I am currently using jQuery tools plugin to show a div on a triggerd event. Only I want to remove this plugin and use jQuery's default fadeIn function. Only I don't get it to work... The jquery tools code: $(document).bind("game_over.overlay", function(){ if ( $('#lost_overlay_trigger').data("overlay") ){ $('#lost_overlay_trigger').data("overlay").load(); } else { $('#lost_overlay_trigger').overlay({ effect: 'apple',
JQuery dialog .dialog is not a function unique situation
The situation I have is unique to one of the pages I'm working with. I have a dialog that loads a page into a modal dialog window. The page loads fine, and displays data. When I close that dialog window, and click on another link that would use the same dialog I get the .dialog is not a function issue. I have found that the reason for this is that the page that gets loaded into the dialog window includes the javascript libraries for jmesa (which uses jquery). If I remove the references to the
Problem about add attribute to tag
Hi all I am using JQuery library to build may website. I need add a attribute to tag and we can control the order of this attribute. Example: I want to add wmode attribute before height attribute. I use code below: $('embed').attr('wmode', 'transparent'); and this is result: <embed height="300" width="300" allowfullscreen="true" allowscriptaccess="always" wmode="transparent"> If anyone has experencies about this problem. Please help me!!!
Image alignment
Can anyone please let me know how to place the image next to the textbox? For me it appears below the textboxes. Please check the attached image. Hope you can help me. Thanks
How would jquery detect numeric keys?
Im trying to update totals as line items amounts are being entered. How would I detect numeric keys?
Quick help?? Using jQuery magnify effect.
I am new to jQuery. I am using http://www.huydinh.co.uk/demo/magnifier/ I am making http://johnhalldesigns.com/Product/A-16Cupboard.html Trying to make a thumbnail in .js that only reduces the image by 50% of size, then as mouse over it increases it to original size. Any help is appreciated, below I think is the code that needs changing. Mike if (this.width() > this.height()) { this.height (this.height() / (this.width() / thumbContainer.width())).width(thumbContainer.width()).css({ bottom:0 }); }
Using .ajax to call web service
I have a web service that returns an array. Code is below: Data variable comes back as blank. I was wonder is that because the method returns an object or am I doing something wrong on my end. $.ajax({ url: "http://FindStreetNameForAllLocalities", data: "{ 'PartialStreetName': '" + request.term + "' }", dataType: "json", type: "POST", contentType: "application/json; charset=utf-8", success: function(data) { if (data == null) { alert( "nothing.");
mobile.changePage to nextPage?
How do I change the code below to swipe to the next page/DIV w/o having to write the script for every page change? Ive tried this (@botton) but it moves to every other DIV id <script type="text/javascript"> $('div').live("swipeleft", function(){ $.mobile.changePage("#pg2", "slide", false, true); }); $('div').live("swiperight", function(){ $.mobile.changePage("#pg1", "slide", true, true); }); </script>
$(object).css('key','value') is not updating
EDIT: I've updated to 1.5.1 - the error persists. I'm using jQuery 1.3.4 right now, and I have the problem where .css is not updating the style information of two items: The code below produces the underlined lines of output. The red parts show where I expect my calls to .css to update the values, and I do not see updated values. I've added '//FAIL' after the lines that aren't doing what I expect them to do, and also highlighted them in red. Anyone have an idea what I might be doing wrong, or what
jquery slider (browser problems)
Hi, the last days i created a jquery slider. I've tested it in serveral browser and realize, that in firefox there is a little problem 1. First you can download the file below to see my problem 2. Start it with firefox 3. Hover over the first tab and then hover over the second tab What happened: In my firefox it jumps to the third tab, why? In other browser it works very well....but not in firefox. The second thing I'd like to ask is the following: The sliding effect seems a little pumpy in some
jquery sg video
var myVideo = { 'ogg': (source + '.ogv'), 'h264': (source + '.m4v'), 'webm': (source + '.webm'), 'swf': (source + '.swf') } var options = { width: ($('#content').height() * .75) * 1.11111, height: $('#content').height() * .75 } $('#videoContainer').video(myVideo,options); Having issues with the video plugin for jQuery. This works great for Chrome but not Safari or Firefox. In Firefox it just shows up as a grey box with a light grey 'X' in the middle, and in Safari as nothing. I'm guessing it's
$.post Issue
Hi everyone. :) I'm relatively new to JQuery and Ajax, so am having some issues with using $.post(). I've had a look at some of the tutorials and documentation here, but none have really helped me with this issue. I'm trying to use radio buttons to select a banner (for my online game). Upon selecting one, I would like the image to fade in below the buttons so the player can preview it before setting it as their preferred banner. My code is below: <?php include_once(DIRNAME(__FILE__) ."/globals.php");
Jquery Version Conflict
<head> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jtip.js"></script> </head> <body> <!-- Slider Content --> <script type="text/javascript" src="js/jquery1.js"></script> <script type="text/javascript" src="js/jquery.easing.1.3.js"></script> <script type="text/javascript"> $(function() { <!-- Function parameters --> }); </script> <div class="container">
Preventing the insertion of the xmlns attribute when creating an XML element
It appears that whenever I create an XML element the xmlns attribute is inserted. This is causing problems when I find content. The following code is an example: var oElement = $('<ele/>'); The resulting XML structure produced appears as follows: <ele xmlns = "http://www.w3.org/1999/xhtml"></ele> In this case ele is not an html element but an explicit XML node. Because it is not an html element the find() operator fails to return the node when for example the statement is like: $(oElement).find('ele');
IE7 and an asterix issue
I have this bind event as below and all works fine on all other browsers except IE 7. $('* #theButton').click(function(e) {e.preventDefault();....}; But if i add all the id's in it will work, but this is not ideal as eventually I might wont loads, at the moment I have 9 buttons with the same id. Any ideas why its not excepting the '*' reference etc Thanks Si
Problem Datepicker and prompt jquery form
Hello, I want to use a datepicker in a prompt jquery form but it doesn't work correctly (i must click on field[date] and click outside and click second time in field date to display it). I don't know what's to do to display it correctly. Thanks for you're help.
IE8 doesnt like line 3539
Just starting to use jQuery and downloaded from the web site just today. All works OK in FF, but in IE8 I get: "Object doesn't support this property or method" referencing line 3539 Line 3539 is: if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) { Any ideas how to solve please? Thanks. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152;
can't validate generated form
Hi, when I generate a new <form></form>, I do not succes to validatte it. Please could you help me to find my mistakes ? here is a light example wich reproduce my problem. <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" lang="fr-FR"><head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" language="javascript" src="js/jquery-1.4.4.min.js"></script> <script type="text/javascript" charset="utf-8">
.change not recognized in IE
hello everybody, these are my first steps with jquery. i would like to use it to replace a checkbox with an image and to swap it when it's clicked. unfortunately the change is not recognized inside the internet-explorer. can you guys help me out? here is the code: <label for="footer_ger_lock"> <img src="unlock.png" /> <input name="footer_ger_lock" type="checkbox" value="1" id="footer_ger_lock" style="display:none;" /> </label> <script type="text/javascript"> $("#footer_ger_lock").change(function()
How to retrieve the text of a DIV whose content was changed after $(document).ready()
I have been using the .live() function for some time now on dynamically added content. However, I have a DIV with no content that is altered after the document is ready. I'm changing the inner HTML of the DIV by writing a variable to the DIV like this: //Write the update URL to a DIV that isn't shown and retrieve it later $("#updateURL").html(updateURL); I'd like to read it back using: $("#updateURL").text(); But since I don't know of any events that I can bind using .live() when you just simply
Using Autocomplete pass textbox value as extraparam to php file
Helloooooooo can anybody help me i want to pass value of another textfield to php file with extraparam option but it's not working . I tried this from last 3-4 days. If anybody help me to sort this is useful for me. Thanks $().ready(function() { $("#txtpro_no").autocomplete("getplotno.php", { width: 260, matchContains: true, mustMatch: false, // This I want to pass value of textbox dynamically which is not working extraParams:
Next Page