Re: [jQuery] AJAX + IE

2006-08-13 Thread fragglefeet

Did you find the answer to this? I'm getting exactly the same with a clean
installation of IE 6.

Thanks
Tom

Hochwender, Jason wrote:
 
 I am not sure why I typed my code out instead of copying.
  
 In any event, this is driving me crazy. Is it possible that something
 about my local configuration could be causing this?
  
 (Windows 2000, apache 2.2, PHP5)
  
function test() {
$.get('../scripts/test.php',
function(pReturnValue) {
alert(pRetunrValue);
}
);
}

You have a typo:
alert(pReturnValue);

Other than that, your code works for me in both FF 1.5 and IE 6


On 6/15/06, Hochwender, Jason  Jason.Hochwender at 
http://jquery.com/mailman/listinfo/discuss_jquery.com jpfinancial.com
wrote:

 I am trying to use the AJAX functionality of jquery but I am having
 problems.

 As a test I wrote the following javascript function...

 function test() {
 $.get('../scripts/test.php',
 function(pReturnValue) {
 alert(pRetunrValue);
 }
 );
 }

 the corresponding php code looks like...

 ?php
 echo 365;
 ?


 I don't think this could get much simpler.
 In FF I get the value but in IE I do not. Any ideas???
 Jason
 
 
 
 -
 Notice of Confidentiality:
 
 **This E-mail and any of its attachments may contain Lincoln National
 Corporation proprietary information, which is privileged, confidential,
 or subject to copyright belonging to the Lincoln National Corporation
 family of companies. This E-mail is intended solely for the use of the
 individual or entity to which it is addressed. If you are not the
 intended recipient of this E-mail, you are hereby notified that any
 dissemination, distribution, copying, or action taken in relation to
 the contents of and attachments to this E-mail is strictly prohibited
 and may be unlawful. If you have received this E-mail in error, please
 notify the sender immediately and permanently delete the original and
 any copy of this E-mail and any printout. **
  
 Thank You.
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/AJAX-%2B-IE-tf1794243.html#a5784806
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] elements order

2006-08-13 Thread Dimitar Spassov
Hi!I have the folowing HTML code:h1heading 1/
h1h2heading 1.2 a /h2
h3heading 1.2.3 a /h3h3heading 1.2.3 b /
h3h2heading 1.2 b /h2h3
heading 1.2.3 c /h3h3heading 1.2.3 d /h3
h3heading 1.2.3 e /h3h2heading 2 b /
h2when apply this JQ:var out = '';$('h1,h2,h3,h4').each(function(i){ out += i + ': ' + this.nodeName + \n;});alert(out);the result is:0: [H3] heading 
1.2.3 a 
1: [H3] heading 1.2.3 b 
2: [H3] heading 1.2.3 c 
3: [H3] heading 1.2.3 d 
4: [H3] heading 1.2.3 e 
5: [H2] heading 1.2 a 
6: [H2] heading 1.2 b 
7: [H2] heading 2 b 
8: [H1] heading 1How to get the right element order?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Javascript HTML WYSIWYG editor

2006-08-13 Thread Remko

I am looking for Javascript HTML WYSIWYG editor JQUERY style?
Not a fancy one but a very basic one. Anyone create such a plugin?
-- 
View this message in context: 
http://www.nabble.com/Javascript-HTML-WYSIWYG-editor-tf2099160.html#a5785306
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Set focus on a text field (newbie question)

2006-08-13 Thread ivan quintero
Sorry for the newbie question, but I want to get rid of my old _javascript_ that I used to set field focus on the first form field, but haven't been able to do it in jquery. How do I do it?--  Ivan Quintero
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Javascript HTML WYSIWYG editor

2006-08-13 Thread Dan Atkinson

Sounds cool! I'm sure there's one out there, but, what the hell... I'll start
one some code right now.

Even if I don't get there first, I'm going to start working on one right
this moment, just to see how it'll look.

Right now, I envisage tag highlighting at the very least.



Remko wrote:
 
 I am looking for Javascript HTML WYSIWYG editor JQUERY style?
 Not a fancy one but a very basic one. Anyone create such a plugin?
 

-- 
View this message in context: 
http://www.nabble.com/Javascript-HTML-WYSIWYG-editor-tf2099160.html#a5785705
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Set focus on a text field (newbie question)

2006-08-13 Thread Konstantin Käfer
$('[EMAIL PROTECTED]text]')[0].focus();2006/8/13, ivan quintero [EMAIL PROTECTED]:
Sorry for the newbie question, but I want to get rid of my old _javascript_ that I used to set field focus on the first form field, but haven't been able to do it in jquery. How do I do it?-- 
 Ivan Quintero

___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] elements order

2006-08-13 Thread John Resig
 $('h1,h2,h3,h4').each(function(i){
 out += i + ': ' + this.nodeName + \n;
 });

The problem is that the CSS selector: h1,h2,h3,h4 means find all h1
elements, then find all h2 elements, etc.. In that sense, hN elements
are particularly troublesome.

Since I don't know the actual structure of your HTML file, I'm just
going to offer one possible solution. Assuming a document structure
that's something l like this:

div id=foo

h1heading 1/ h1
h2heading 1.2 a /h2
h3heading 1.2.3 a /h3
h3heading 1.2.3 b / h3
h2heading 1.2 b /h2
h3 heading 1.2.3 c /h3
h3heading 1.2.3 d /h3
h3heading 1.2.3 e /h3
h2heading 2 b / h2

/div

You can do:
$(#foo  *).each(function(i){
out += i + ': ' + this.nodeName + \n;
});

to achieve the desired result. I  highly doubt that your document
actually looks like that, though - so it'll obviously need some
tweaking.

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Bug?

2006-08-13 Thread John Resig
 Can anyone help me with this?

IE really hates dealing with Tables and innerHTML (which is what
.load() uses). An alternative may look something like this (untested):

$.get('ajaxClassObjects.act?type=5id=9',function(html){
$(#objects).empty().append( html );
});

It's worth a shot - let me know if that helps.

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] AJAX + IE

2006-08-13 Thread John Resig
 Did you find the answer to this? I'm getting exactly the same with a clean
 installation of IE 6.

Do you think you could provide us with a test page to look at? That
way we can help to confirm the bug on our own installations.

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] elements order

2006-08-13 Thread Dimitar Spassov
Tanks!Look at test page: http://dimitarspassov.googlepages.com/jqpagecontent
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] ajaxStart and ajaxStop

2006-08-13 Thread Michael Fuerst
Hi,

$().ajaxStart( function ) and $().ajaxStop() are great to show/hide a
global Ajax activity image/message. But sometimes it would be nice to
temporarily inactivate this functions.
E.g when you have a very short Ajax request, showing an image for a
second or so is more annoying then really helping the user.
So I'm  wondering if there is an easy way to inactivate ajaxStart and
ajaxStop for certain Ajay request temporarily. If not, maybe this would
be something to include in a future version of jQuery...

Michael

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajaxStart and ajaxStop

2006-08-13 Thread Michael Geary
 $().ajaxStart( function ) and $().ajaxStop() are great to 
 show/hide a global Ajax activity image/message. But sometimes 
 it would be nice to temporarily inactivate this functions.
 E.g when you have a very short Ajax request, showing an image 
 for a second or so is more annoying then really helping the user.
 So I'm  wondering if there is an easy way to inactivate 
 ajaxStart and ajaxStop for certain Ajay request temporarily. 
 If not, maybe this would be something to include in a future 
 version of jQuery...

Isn't that something you could easily do yourself in your callback function?
Set a global flag and check it.

How would adding this to jQuery make it any easier?

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] elements order

2006-08-13 Thread John Resig
 Look at test page:
 http://dimitarspassov.googlepages.com/jqpagecontent

Very nice :-)

It reminds me of what PPK does on Quirksmode, having the mini TOC up
in the corner:
http://www.quirksmode.org/

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ajaxStart and ajaxStop

2006-08-13 Thread Michael Fuerst
John Resig schrieb:
 I agree with Mike - especially considering that its impossible to know
 that an AJAX operation will take less than 1 second to complete -
 preemptively stopping a spinner from firing may cause more problems
 than it's work.
   
Yep, you're right. Never thought  about setting a global var to control
it. It's really easy...

Michael

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/