JQuery :: 1.4 Adds Support For Nested Param Serialization In JQuery.param, Using The Approach Popularized By PHP
Jan 26, 2010
I'm experienceing some problems with jQuery 1.4(.1) with the "new" ajax param serialization. My code does basically this:
[Code]....
so I'm creating an array within the "ajaxparams" object, which I fill with some data. So far so good. Problem here is, the $.post request creates a string like this:
[Code]...
Release Notes Snippet: jQuery 1.4 adds support for nested param serialization in jQuery.param, using the approach popularized by PHP, and supported by Ruby on Rails. For instance, {foo: ["bar", "baz"]} will be serialized as “foo[]=bar&foo[]=baz”. since I'm working with perl and not php, this issue is getting a little bit annoying.
View 6 Replies
ADVERTISEMENT
Sep 9, 2011
I am trying to use a method equalTo from jquery.validate.js and could not find how to use the "param" parameter. Below is part of the js file I am referring to:
Code:
// [URL]
equalTo: function(value, element, param) {
return value == $(param).val();
},
View 1 Replies
View Related
Aug 12, 2011
I try to change a <param>'s attribute, but without success.
Why doesn't the last alert print "TEST" ? [code]...
View 1 Replies
View Related
Jan 15, 2010
For example:
arrayInfo[0] = 'Name';
arrayInfo
[1] = '22';
[code]....
View 9 Replies
View Related
Jan 28, 2011
$('#slideshow' + ssID).before('<div id="nav">').cycle({
fx: 'scrollHorz',
timeout: 0,
[code]....
how do I pass a var (in my case ssID, since have two slideshows) to onAfter? (I know there are three params passed to this fn already... how do I pass a fourth one??)
View 2 Replies
View Related
Apr 26, 2011
There are 3 tables in DB group-set,group,users. Two different type of folders 1 is group-set which contains groups and another is groups which contains the users in group.group-setcan have multiplegroup-setorgroupas a child elements.groupwill have only users as child elements.useris a leaf node.how to load it with ajax. because ajax GET request passes "id" to load childs.. but in this case we need extra parameter in GET request i.e.typeto find out whose child it needs (group-set's or group's).type will determine what needs to be loaded. users or groupshow to modify get request generated on node expand with appending type parameter in treeview ??
View 1 Replies
View Related
Jul 23, 2005
I need to pass a hard coded value to a JS file:
<script language="JavaScript" src="Tracking.js"
type="text/javascript"></script>
Neither of these methods work:
<script language="JavaScript" src="Tracking.js?someid=303"
type="text/javascript"></script>
or
<script language="JavaScript" src="Tracking.js"
type="text/javascript">var someid = 303;</script>
or
<script>var someid = 303;</script>
<script language="JavaScript" src="Tracking.js"
type="text/javascript"></script>
Any suggestions?
View 3 Replies
View Related
Feb 3, 2004
I'm trying to load different java applets with a click of a button ... but with no success. Here's my code:
View 1 Replies
View Related
Aug 2, 2010
I have a page working perfectly that passes up to 10-12k worth of data into a function via an 'onClick' event. That onClick is one of the <img..>'s attributes, directly. In case later that (dynamic) data gets larger, am I toying with potential problams because of some limit - either a limit in what can be passed into a JS function, or else a limit in the max num of characters allowed in an element's attribute(s)? What do you think is the reasonable amount that I can pass before things start to break? I may need to go up to 50k. 100k maybe, but I doubt that much.
View 6 Replies
View Related
Mar 15, 2007
I'm trying to open an email window with 200+ emails this way...
window.open('mailto:'+allList+'');
'allList' contains: xxxxx@yyyy.com; xxxxxx1@yyyy.com; and ect....
When the list consists of a few emails it works, when the list is large, I get "The data area passed to a system call is too small" error.
I guess I can make a huge mailto hyperlink, but I think that would look horrible. If anybody has an idea please help me out.
View 5 Replies
View Related
Sep 10, 2010
I am just wanting to use Java to change one value in my code for my project but after having gone through the basics on the web, i seem no closer to finding the solution.I am wanting one JavaScript effect of 'onmouseover' to change the autostart value to 'true' when the preceeding img element is hovered on and to go back to 'false' for onmouseout. I was hoping i'd be able to work out a simple application for an if statement but am now unsure if i'll be able to work it out.Does anyone know a simple javascript that will do the trick?
<p><a class="photo" title="video" href="head.jpg"><img class="mini" src="head.jpg" width="100" height="75" />
<img class="big" src="head.jpg" width="100" height="75" /></p>
[code].....
View 6 Replies
View Related
Aug 14, 2009
using js to force a specific anchor call to jump after the page completely loads. The reason I am doing this is because the page I am linking to with anchors takes a long time to load and a standard browser anchor link sometimes does not work 100%. With that said, I would now like to make the script I wrote universal to get ANY anchor param in the url and jump to that spot on the page. Right now it's coded to just look for "#anchor". I want to re-code it so it will look for "#" + "anyAnchorName".
[Code].....
View 1 Replies
View Related
May 1, 2011
We utilize several dedicated hardware appliances that interface with our site and also another server. These dedicated appliances have a built in webserver (no php tho) to administer network diagnostic tests.
Since I can't call the applet directly from my own site I've employed the use of an iframe and I pass the visitors username to the iframe from the parent window to the iframe via the calling url for the purposes of attaching the username to the SID param of the applet. I created a new webpage on the CT to use for this feature as noted below.
I have verified that the parsing of the url does produce the username without problems but where I am running into a problem is passing the VALUE of username to the <param name="SID" VALUE statement. Instead of actually posting the VALUE of username it posts "&{username};" to the SID value instead of the actual value of username. Essentially what it is doing is passing the literal after the * instead of the VALUE of the variable "username".
I use a similar PHP command to the same thing just fine <param name="SID" VALUE= '*<?php echo($username);?>'> but since I don't have the luxury of PHP on the CT I'm stuck with html/javascript.
The code is below and the specific param statement is highlighted in red. Any help with this would be greatly appreciated. Just in case anyone is wondering the * is required as this tells the parameter to pass anything after the * to the SID field which is used for tracking on our main server.
<html>
View 14 Replies
View Related
May 28, 2011
I'm having a problem with form serialization in IE7/8, in IE9 everything is working fine.
html:
<form>
<input type="text" name="field" value="Test value" />
</form>
[Code]....
For now i wrote my own method to serialize forms but I would like to use jQuery method.
View 1 Replies
View Related
Aug 20, 2010
I am fairly new in trying to cut up and customize a jQuery plugin, previously I was able to just grab code from various blogs and did not really have to dive into the js but now I am unable to find any good resources with this particular plugin.
The plugin I am working on is jQuery.sheet, [URL]...ionalities that I want, I need the plugin to be able to send a AJAX request as soon as the user edits the cells and then update that input in the mysql table in the back on the fly. currently his plugin works by doing a hard save by invoking a save function.
I have taken a look at the massive code in jquery.sheet.js but I really have no idea where to begin. The developer doesn't reply my emails either so I was wondering if anyone here can point me in the right direction. I figure a seasoned jquery ninja can look at the js file and can see how the code works when users click to edit a cell. I am still trying to figure that part out...let alone trying to add ajax requests.
View 1 Replies
View Related
Feb 16, 2011
I posted earlier but I don't think I was very clear with my question,
I'm trying to emulate this flash menu for a client, and was wondering what the best approach would be..[URL]...
View 7 Replies
View Related
Jun 19, 2009
I'm trying to create a list, to which you can:
1. Add and remove items.
2. According to what's in this list, there should be dynamic content loaded on to the page.
I've accomplished 1 with the code below. I'm not sure about how to accomplish 2.
<script language="javascript">
var listItems = new Array();
var currentList = new String();
function listManager(task, id, name) {
//$("#debug").append(" ##### List manager. ("+listItems.length+"
items) #####
");
if(task == "add") {
refreshList(); // refresh the list .....
View 2 Replies
View Related
Jul 20, 2005
I have several PDF files that I want folks to read. Should I just write
some text and make a hyperlink to the file. I'm still trying to decide if I
want them to only open the file and read it or force them do download it.
View 1 Replies
View Related
Sep 12, 2010
Sometimes I wish I had started with javascript instead of php... Really need your help fellow Sitepointers! I stumbled over a script that I am dying to use for my new design, but I need to do two small tweaks to it that my JQuery skills just aren't up to.Demo of the script is here:http://www.seoarticlewritinglab.com/lofslidernews-1/As you can see, it automatically scrolls every X seconds to the right until it gets to the end. Afterwards, it does a huge fastforward back to the first item. What I want it to do, is to automatically scroll to the right every X seconds, but when it gets to the end, simply change scrolling direction, and scroll backwards one item at a time every X seconds... And when it gets to the first item, switch the direction back to normal forward scrolling.Can someone point me in the right direction and help educate me a little bit in javascript? This is probably really easy for you experts, but I am having a really tough time.
Code:
// JavaScript Document
/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
[code]....
View 3 Replies
View Related
Jan 5, 2010
I have links in my tab panels. Those links are broken because (from what I can figure) the remote tab section in the ui.tabs.js file adds #ui-tabs-(some number) to those links.
var id = self.tabId(a);
a.href = '#' + id;
What can I put in my tab function:
jQuery(document).ready(
function() {
jQuery("#tabs").tabs();
[code]....
View 2 Replies
View Related
Aug 24, 2009
Let me introduce free PHP IDE with available JQuery plug-in (paid):
Codelobster PHP Edition ([url]) - has all standart abilities for editing code
- PHP/HTML/CSS/JavaScript highlighting, autocomplete, code structure
- PHP debugger
- code folding, tooltips, help and etc.
And it has special JQuery features:
- autocomplete for JQuery library
- context and dynamic help for JQuery library
View 1 Replies
View Related
Jun 25, 2011
I'm having a problem getting jquery backstretch to run from the Google library. I'm using this code:
<script type="text/javascript" src="http://www.timbaggaley.co.uk/js-includes/jq_backstretch/lib/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="http://www.timbaggaley.co.uk/js-includes/jq_backstretch/jquery.backstretch.js"></script>
<script type="text/javascript">
$.backstretch("IMAGE URL", {speed: 150});
[Code]...
View 2 Replies
View Related
Jan 14, 2010
I was trying to use a jQuery timer to repeat a function at intervals, but it didn't work in IE. Then I read that IE doesn't support setInterval, which seems amazing. Did I read this right? And if so, what do I use in jQuery to keep repeating a function at intervals? I've tried a few things and they all bomb out in IE, just doing something once, although they work in FF. What works in the execrable IE and real browsers?
View 1 Replies
View Related
May 29, 2009
at least going to be a double post from in the jQuery Plugin list. I'm being moderated yet on that list, and it doesn't seem to get much activity.I'm going to post this here since the Tablesorter developer hasn't gotten back to me yet.I took a copy of the latest version in SVN and modified it to have jQuery UI Theme support. It seems to work very well and anyone is welcome to use it.[code]I was hoping this would be included into tablesorter so I just threw up the modified version on my work site for now.
View 3 Replies
View Related
Jun 30, 2010
I am quite under the impression that I can make any CSS property work across the browser ( By that I mean IE6 ) using jquery. I guess I have written it right. Am I under wrong impression? I mean if it supports Opacity property, it might as well support min-width & min-height.
View 2 Replies
View Related
Aug 30, 2011
Every 2 to 3 days I check the ticket system to see how the development of the latest JQueryUI 1.9 is doing and how the JQuery is doing. After several weeks of this I have found way too many tickets about IE6 issues and I started to ask myself why does JQuery and actually, many other projects still try to solve problems for somethings that is beyond repair. With this am talking to the fact that:
[Code]...
View 1 Replies
View Related