Something simple (without any error checking) like the following works for
me:
html
head
titleObject Array/title
script type=text/javascript
var parArr = new Array('par1', 'par2', 'par3', 'par4');
var valArr = new Array('val1', 'val2', 'val3', 'val4');
function addKeysValues(original, newkeys,
I don't know if you are still having this problem, but the reason it isn't
working is simply bad JavaScript syntax. You should use your working code,
as there is nothing wrong with it.
Teddy
On Tue, Jul 14, 2009 at 4:26 PM, Nick mrnickst...@gmail.com wrote:
Anyone: I cant seem to get this to
Please post again your current jQuery code including the separator you are
using, as well as what is inside the data variable in full. That way, we can
understand exactly what's going on; right now, I'm still confused.
Teddy
On Sat, Jul 18, 2009 at 12:07 AM, naz s.na...@gmail.com wrote:
i
As far as I know, not directly with JavaScript. You seem to be encountering
limitations imposed by the same origin policy for security purposes. For
some information on the same origin policy, see
Perhaps
success: function() {
var ht = $('#htmlExampleTarget');
ht.fadeIn('slow');
if (ht.html().indexOf('Success') = 0) {
$('#htmlForm :submit').val('Success').attr('disabled', true);
}
}
Ted
On Fri, Jul 17, 2009 at 3:06 AM, icuucme deron.tava...@gmail.com wrote:
Sounds great that your site is getting ready to launch. The notice page,
from what I see, seems to work fine at least :-). Just as a point of
professional interest, with your doctype the meta/ tags should have their
own ending forward slashes. You seem to know this, so maybe your CMS is
preventing
James has some good ideas. If they still don't work for you, you can
consider storing the new form values in a cookie.
Ted
On Thu, Jul 16, 2009 at 7:42 PM, James james.gp@gmail.com wrote:
The data is still there since the browser does a cache of the form
info, but dynamically created
Yes, your action script can be anything.
Ted
On Fri, Jul 17, 2009 at 2:40 PM, Greg Evans greg.djr...@gmail.com wrote:
That looks great, and I think it is just what I need. I want to clarify
however, this shows to comment.php, but something like comment.pl should
work equally as well
It is because you get rid of the form when you replace the message inside
#form before calling serialize(). Move this line
$(#form).html('Please wait...');
below everything else, and serialize() will no longer return empty.
Ted
On Fri, Jul 17, 2009 at 2:54 PM, robotwink robotw...@gmail.com
Your best option is to log on the server-side page the form submits to.
Barring that, you can always submit the form on a callback from your $.get()
call.
Ted
On Wed, Jul 15, 2009 at 4:26 PM, IMStarboard ttho...@local-motors.comwrote:
There is a form that performs a post on our site that I
It's been common practice when coding for Firefox to do this. That it isn't
the same in Chrome I hadn't noticed, see:
html
head
titleTest/title
script type=text/javascript
var event = 'test';
alert(window.event);
window.onload = function() {
alert(window.event);
setTimeout(function() {
I was going to work on a proof of concept, but then I had the idea to see if
anyone else has already implemented this. Sure enough, Brandon Aaron has:
http://brandonaaron.net/blog/2007/06/17/jquery-snippets-outerhtml
http://brandonaaron.net/blog/2007/06/17/jquery-snippets-outerhtml
Ted
On Thu,
Using z-index seems like the way to go. If you show us the code that didn't
work, maybe we can help you figure out why it didn't.
Ted
On Thu, Jul 16, 2009 at 4:17 PM, osu onesiz...@googlemail.com wrote:
Hi,
Just wondering what the best way to cycle (fade in and out) background
images is?
In addition to trying Cesar's suggestion, you should give us some more code
details and context. You can do this sort of check on a number of events,
including onclick and onsubmit, or whenever your div is updated.
Ted
On Thu, Jul 16, 2009 at 6:41 PM, Cesar Sanz the.email.tr...@gmail.comwrote:
I'm not completely clear with what you want. Do you mean that you don't want
your images to be dragged outside of a containing div? If so, you can set
containment option:
http://docs.jquery.com/UI/Draggable#option-containmenthttp://docs.jquery.com/UI/Draggable#option-containment
Ted
On Wed, Jul
I don't know the details behind your specific problem, but a solution may be
found at the following link:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
Teddy
On Fri, Jun 19, 2009 at 2:42 PM, deboni des...@debonis.ch wrote:
Hi
I'm using your superfish menu on a joomla website.
Something like this would work:
foo(bar);
function foo(prop) {
window[prop] = 1;
}
Ted
On Sat, Nov 15, 2008 at 1:24 PM, Johnnie Walker [EMAIL PROTECTED] wrote:
Hi,
Is there any way to add a property named via a variable to a
javascript object?
this is what I would like to do:
You may also like to hear that there is the CSS position fixed property,
which does what you want, even though there are some problems with it and
IE6-. Check out position fixed at
http://www.quirksmode.org/css/position.html
Also, you may be able to use fixed positioning in IE6, see
If you really want to validate all disabled form fields also, the relevant
line in the plugin is
.not(:submit, :reset, [disabled])
to which you can add or remove functionality. Again, as Jörn has said,
usually disabled elements are not meant to be validated, so make sure it's
what you really
Very nice. I got to 111 points before I got bored; is there supposed to be
an invisible block in the upper left for you to keep hitting? :-)
On Thu, May 22, 2008 at 2:21 PM, David Decraene [EMAIL PROTECTED]
wrote:
I took my mind of things and had some fun with jQuery, John's Simple
Javascript
What page are you trying to load with AJAX? Is it outside your domain?
On Thu, May 22, 2008 at 7:47 PM, John [EMAIL PROTECTED] wrote:
It's just faster to write self closing p tags and I was just giving an
example. I don't normally use them in my code. They're not related to
my problem.
I
Include the bgiframe plugin in your head section:
http://plugins.jquery.com/project/bgiframe
On Mon, May 19, 2008 at 2:13 PM, cfdvlpr [EMAIL PROTECTED] wrote:
Has anyone else noticed that in IE6, select menus show up in front of
the cluetip? Is there a fix for this?
--
Ted
You are getting this because Thickbox decides if your link is an image or
not based on the file extension. If all your images are from yimg, you can
fix this with a bit of a hack.
Go into thickbox.js, find the function tb_show(), and these lines:
var urlString =
You'll need to give us more information, a demo or at least some code,
before we can help you diagnose.
On Thu, May 1, 2008 at 5:18 PM, all4one [EMAIL PROTECTED] wrote:
I have two drop-down lists in the main menu at the top of the page.
When you click on link items in the top menu (different
I would recommend changing the script type from text/jscript to
text/javascript, since the former does not, at the very least, work on
Firefox 3b5.
On Wed, Apr 30, 2008 at 3:59 PM, Waters [EMAIL PROTECTED] wrote:
Sorry about that ignore my previous post - - a quick search of the
archive
Shouldn't it be
li id=btn-slideSchedule/li
On Sat, Apr 5, 2008 at 9:09 AM, ktpmm5 [EMAIL PROTECTED] wrote:
I'm a newbie to jquery, so no flames please...I have a basic 3 column
web
page - nav, center and left. That works great. My left column is
navigation. When I click on a link on
You can use toggle():
$(a).click(function() {
$('#Content').toggle();
});
On Nov 8, 2007 7:06 PM, shapper [EMAIL PROTECTED] wrote:
Hello,
I have an anchor on my page.
When I click it I want to Toggle the visibility of a Div with ID =
Content.
If the div is visible then it should
I've always wondered why only Javascript spells it right.
On Nov 8, 2007 6:21 PM, Aaron Porter [EMAIL PROTECTED] wrote:
How about document.referrer? :)
Aaron
ElTibetano wrote:
Hi, maybe someone can help me on this:
I'm using jqModal plugin to open a form from different pages, that
You should be able to test if an element is hidden by doing something like
$(element).is(:hidden)
which should return true or false.
On 9/17/07, james_027 [EMAIL PROTECTED] wrote:
hi,
using the hide() function, how do I know if an element is hidden or
not?
THanks
james
--
Ted
Moreover, you can make sure each of your form elements has a tabindex
attribute, and you can find the element with the next tabindex and focus it.
Ted
On 9/15/07, Erik Beeson [EMAIL PROTECTED] wrote:
Can you not just focus the next field? Assuming your fields are all at the
same level, just:
That example is dynamic in the sense that you can populate that Javascript
array in many different ways. For example, you could take in user input and
create an array, or you can let your PHP echo out a Javascript array.
For dynamic in the sense that we use AJAX to pull data and then create the
Using a Range object doesn't mean that it becomes selected/highlighted on
the page. It is just a way of selecting a several nodes in the document
behind the scenes (thought not exactly, it's somewhat like
document.getElementById()). As far as I know, there is no way of forcing
text on a page to be
Instead of using $(document).ready( ... ), you can try to use
$(window).load( ... ):
$(window).load(function() {
$(#photo).fadeIn(slow);
});
I believe that will wait until the image has been loaded.
On 9/16/07, To [EMAIL PROTECTED] wrote:
Hello all,
I'm looking for a while to preload
using server-side data. Still has some work but I got an
example page up that's working:
http://devel.phpgeek.org/inventory/single/10
- sf
On 9/16/07, Theodore Ni [EMAIL PROTECTED] wrote:
That example is dynamic in the sense that you can populate that
Javascript
array in many different ways
Unless you have other .htaccess files in your subdirectories which overwrite
Joan's .htaccess rules, then I believe only one in the root folder should
work.
On 9/14/07, Glen Lipka [EMAIL PROTECTED] wrote:
Where does that .htaccess file go? Just in the root? Or in every folder
that has a
I'm not going to enter this argument, but I do suggest that both gzipped and
non-gzipped file sizes be present, because a download link should have the
accurate download size. Otherwise, I agree that with the big gains gzipping
provides (less than 1/3 file size!), the gzipped size should be
Put your mouse over the image and see how long it takes before it vibrates
off :-)
I noticed that the setTimeouts aren't canceled. Is that intentional to get
more vibration?
On 9/12/07, JFSIII [EMAIL PROTECTED] wrote:
A fun plugin, with very few real world use cases.
The quote and the
Perhaps you meant your options to be:
$.ajax({
type: POST,
url: adddata.php,
dataType: html,
data: name+=+entry,
success: function(msg) {
$('#'+holder).html(msg);
}
});
You are getting error because the parameter you use, the err parameter, is
a simple status indicator that gets set to a few general values like
timeout, success, or error.
In your case, use the function(xhr,err,e) function and try to print out
e.name and e.message
On 9/12/07, 0xCAFE [EMAIL
This could be because your server is not sending the correct mime type of
XML documents. If you are serving a server-side page as XML, you must use
the server-side language features to set the Content-Type header. If you are
just serving .xml pages, make sure the server is sending the correct
Also feel free to post snippets and use http://pastebin.com/ if you need.
It's usually better to post queries on the board, where there are many
talented people instead of limiting yourself to one talented person :-)
On 9/12/07, Glen Lipka [EMAIL PROTECTED] wrote:
I have a whole mess of
I responded through email, but it didn't seem to get through.
Perhaps you meant your options to be:
$.ajax({
type: POST,
url: adddata.php,
dataType: html,
data: name+=+entry,
success: function(msg) {
I took a quick look at the blockUI code, and you can fix the problem by
changing the bind function to this:
// bind/unbind the handler
bind: function(b, el) {
var full = el == window;
// don't bother unbinding if there is nothing to unbind
if (!b (full
, you confirmed my suspicions...
Ryan
On Sep 12, 8:45 pm, Theodore Ni [EMAIL PROTECTED] wrote:
This could be because your server is not sending the correct mime type
of
XML documents. If you are serving a server-side page as XML, you must
use
the server-side language features to set
Often this occurs when the onclick event for a link does not return false,
and then the browser loads the href, often # which moves the page to the
top. Is there a test page you can show us where this is happening for you?
On 9/13/07, FrankTudor [EMAIL PROTECTED] wrote:
Hi have a page that has
On that website, Sevir mentions that the need to have each individual rule
in Javascript is something that he found a problem in other validation
packages, so I'm sure that using the title attribute was a specific design
decision.
That said, I'll be looking forward to seeing if Javascript rules
If you must use IDs, then you can always create an object to keep track of
all the ID names. Just maintain a counter variable that can be appended to
your ID.
On 9/7/07, Su [EMAIL PROTECTED] wrote:
On 9/7/07, Collin Allen [EMAIL PROTECTED] wrote:
working on this project with some PHP
Exactly. It is a subtle point, but lists do not contain other lists, they
contain items which may be lists.
On 9/6/07, Karl Rudd [EMAIL PROTECTED] wrote:
He's referring to how lists (UL and OL) are built up in the DOM (from
the HTML). Lists can only have LI elements as children.
So these
You're right. There isn't any technical problem at all, but it is a design
decision the HTML designers made, for simplicity or whatever other reason.
In the HTML specs, ul elements are only allowed children li elements:
http://www.w3.org/TR/html401/struct/lists.html#edef-UL
As mentioned, most
I have not looked at this in depth, but you might be able to use onShow()
callback to run your own ajax if you don't use the built-in one.
On 9/4/07, Joe [EMAIL PROTECTED] wrote:
from the jqModal README:
NOTE; To use custom ajax routines, utilize an on open callback
function. If you
I can't reproduce this using just the table and jQuery code you provided. I
tried putting a separate style on td but that just stifles any hover effect
on both FF and IE7.
Is there any more information you can provide, or perhaps a test page
showing the problem?
On 9/5/07, Andy Matthews [EMAIL
I don't have time right now to look at this in depth, but other than putting
the filter style inline on each of your objects, the only other way I can
see to fix this is to somehow modify the jQuery code to first grab the
current filter style from currentStyle or something along those lines. I
element with an
ID.
$('#containerID form.client ').livequery(...);
Could you upload an example somewhere that we could see?
--
Brandon Aaron
On 8/28/07, Theodore Ni [EMAIL PROTECTED] wrote:
That sounds like it should work, but it isn't doing anything. I think
there must be something
On 8/28/07, Theodore Ni [EMAIL PROTECTED] wrote:
I know exactly what you mean, and it makes perfect sense, and now going
back to Firefox, it works like a charm. Normally that would be enough for
me, but this needs to run in the exploder :-(
Ok, I've gone back and tried to recreate this example
I believe you need a comma after all but the last function, because they are
name : value pairs in an object.
On 8/28/07, juliandormon [EMAIL PROTECTED] wrote:
I'm trying to use both afterFileAppend and afterFileRemove. I get an
syntax
error in javascript:
Missing } after property list
Hey guys,
I'm having a spot of trouble combining live query with interface
draggables, and I'm afraid I don't have the time to study the
internals of both plugins (I'm in midst of trying to meet a deadline),
so I hope you guys can briefly explain how both work.
When I am dragging something,
/#plugin-developers) like this:
$.livequery.registerPlugin(Draggable);
Now Live Query will know to watch for changes created by the Draggable code.
--
Brandon Aaron
On 8/28/07, Theodore Ni [EMAIL PROTECTED] wrote:
Hey guys,
I'm having a spot of trouble combining live query
I just did a quick test because I had to visit this very issue when I
had some problems combining Live Query with Interface draggables. It
seems that click() doesn't touch onclick (which makes some sense
because it might get messy firing multiple click() functions and
unbinding them).
From my
I have not looked at the code in depth, but I know that 1.1.4 supports
recursive $.extend(), which might look at the fields inside your
document.location object and return something the function was not
expecting.
On 8/27/07, drew [EMAIL PROTECTED] wrote:
Hi all,
I've been using $.ajax in
I only recently learned that delete was even a Javascript keyword when
my editor highlighted it ;-)
I'm sure there are cases when you can use it, although I can't think
of anything where it is completely necessary. Maybe someone who knows
more about the intricacies of Javascript can tell us
On 8/27/07, Theodore Ni [EMAIL PROTECTED] wrote:
I have not looked at the code in depth, but I know that 1.1.4 supports
recursive $.extend(), which might look at the fields inside your
document.location object and return something the function was not
expecting.
On 8/27/07, drew [EMAIL
61 matches
Mail list logo