[jQuery] Re: Works in IE7 but not IE6

2009-04-17 Thread slycreations

 That's what I have now: a simple jQuery action and as far as IE6 is
 concerned it is not there at all.

At this point, the issue could be related to jQuery itself, or to the
css for mainDiv.
That's why I recommended something simple like an alert, so that you
could determine if the issue is actually with the jQuery framework, or
if it is related to IE6's quirky css model.

 Can I save each script file using UTF-8 encoding in Notepad? If not,
 how do I do it?

Notepad does allow you to save files with UTF-8 encoding, BUT it
prefixes the file contents with a Byte Order Mark (usually called
'BOM'), which causes a lot of problems, so I wouldn't recommend using
notepad for this.  Honestly, this may not be the issue at all --
that's why I suggest trying some other option to determine if jQuery
is running in IE6 before you worry about the file's encoding.


[jQuery] Re: Works in IE7 but not IE6

2009-04-17 Thread MauiMan2

Well, my jQuery tests didn't work and I thought they were very simple
but I can try an alert test.


[jQuery] Re: Works in IE7 but not IE6

2009-04-17 Thread MauiMan2

Okay, the following actually works:

jQuery(document).ready(function(){
 alert(Thanks for visiting!);
});

but I haven't been able to get any other jQuery commands to work,
including ones that worked on other sites then got ported over to this
current project for test purposes. Going to keep experimenting.


[jQuery] Re: Works in IE7 but not IE6

2009-04-17 Thread waseem sabjee
instead of
 jQuery(document).ready(

 function(){
 alert(Thanks for visiting!);
});


try doing this

$(function() {
  alert(Thanks for visiting!);
});

make sure all your jquery is wrapped in that function.
example

$(function() {
  alert(Thanks for visiting!);
 $(#myid).click(function() {
// do code
});
});

all should be in the same function.
this would reduce the possibility of conflicts as well.

On Sat, Apr 18, 2009 at 3:30 AM, MauiMan2 cmzieba...@gmail.com wrote:


 Okay, the following actually works:

jQuery(document).ready(function(){
 alert(Thanks for visiting!);
});

 but I haven't been able to get any other jQuery commands to work,
 including ones that worked on other sites then got ported over to this
 current project for test purposes. Going to keep experimenting.


[jQuery] Re: Works in IE7 but not IE6

2009-04-17 Thread Karl Swedberg



On Apr 17, 2009, at 9:37 PM, waseem sabjee wrote:


instead of
 jQuery(document).ready(
function(){
alert(Thanks for visiting!);
   });

try doing this

$(function() {
  alert(Thanks for visiting!);
});

make sure all your jquery is wrapped in that function.
example

$(function() {
  alert(Thanks for visiting!);
 $(#myid).click(function() {
// do code
});
});

all should be in the same function.
this would reduce the possibility of conflicts as well.


Sorry, but that's not true. If there are conflicts with other  
libraries, then exposing the $ function is only going to make things  
worse.


For safe encapsulation, try this:

jQuery(document).ready(function($) {

  // do your thing here.

});


Also, take a look at http://docs.jquery.com/Core/jQuery.noConflict



--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com



[jQuery] Re: Works in IE7 but not IE6

2009-04-17 Thread waseem sabjee
yeah in that case. I prefer only sticking to one library per site...

On Sat, Apr 18, 2009 at 3:59 AM, Karl Swedberg k...@englishrules.comwrote:



 On Apr 17, 2009, at 9:37 PM, waseem sabjee wrote:

 instead of
  jQuery(document).ready(

 function(){
 alert(Thanks for visiting!);
});


 try doing this

 $(function() {
   alert(Thanks for visiting!);
 });

 make sure all your jquery is wrapped in that function.
 example

 $(function() {
   alert(Thanks for visiting!);
  $(#myid).click(function() {
 // do code
 });
 });

 all should be in the same function.
 this would reduce the possibility of conflicts as well.


 Sorry, but that's not true. If there are conflicts with other libraries,
 then exposing the $ function is only going to make things worse.
 For safe encapsulation, try this:

 jQuery(document).ready(function($) {

   // do your thing here.

 });


 Also, take a look at http://docs.jquery.com/Core/jQuery.noConflict



 --Karl

 
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com




[jQuery] Re: Works in IE7 but not IE6

2009-04-13 Thread slycreations

My suggestion was that you may want to make sure that your jQuery
scripts and/or plug-ins are encoded as UTF-8.
To do that, you would need to open and save each script file using
UTF-8 encoding.

File encoding may not be the issue at all.  I've been unable to tell
from your post if the problem is with jQuery itself or with a plug-in
script.

Have you verified if jQuery is running at all in IE6?  For example,
create a new page and insert a simple jQuery action that would let you
know if it's running  (such as an alert message).


[jQuery] Re: Works in IE7 but not IE6

2009-04-13 Thread MauiMan2

Have you verified if jQuery is running at all in IE6? For example,
create a new page and insert a simple jQuery action that would let you
know if it's running  (such as an alert message).


That's what I have now: a simple jQuery action and as far as IE6 is
concerned it is not there at all.

Can I save each script file using UTF-8 encoding in Notepad? If not,
how do I do it?

Along with you I too wish I could show the site this is on but at the
moment it's for employees' eyes only.


[jQuery] Re: Works in IE7 but not IE6

2009-04-09 Thread Jonathan Vanherpe (T T NV)


MauiMan2 wrote:

I have a project that is in the staging environment so unfortunately I
can't link to it but jQuery works fine in IE7 but has no effect
whatsoever on IE6. I don't know what sort of code I could possibly
change to get it to also work in IE6. Any suggestions?



without some code it's hard to tell. Can't you reduce everything to a 
test case and upload it somewhere?


Jonathan

--
Jonathan Vanherpe - Tallieu  Tallieu NV - jonat...@tnt.be


[jQuery] Re: Works in IE7 but not IE6

2009-04-09 Thread Ralph Whitbeck
So the jQuery code isn't working at all?  Sorry your description is  really
vague and I am unsure what the question is without more specific details.

On Thu, Apr 9, 2009 at 1:56 AM, MauiMan2 cmzieba...@gmail.com wrote:


 I have a project that is in the staging environment so unfortunately I
 can't link to it but jQuery works fine in IE7 but has no effect
 whatsoever on IE6. I don't know what sort of code I could possibly
 change to get it to also work in IE6. Any suggestions?


[jQuery] Re: Works in IE7 but not IE6

2009-04-09 Thread MauiMan2

Basically I am trying to use jQuery to add classes to certain
elements. Works in IE7 and every other browser but not IE6. This an
example of a jQuery statement I have in place so far:

$(document).ready(function() {

$('BODY  DIV').addClass('mainDiv');

});

The CSS has certain styles that apply to anything with the class
mainDiv and those styles show up in every browser except for IE6.



[jQuery] Re: Works in IE7 but not IE6

2009-04-09 Thread slycreations

I'll agree with the others that it's hard to trouble shoot without
some code.

The only time I've had issues with IE6, it was due to inconsistencies
in file encoding.
We encode all of our pages and scripts as UTF-8, and the validation
plug-in was ISO-8859-1.
Once I encoded the plug-in source file in UTF-8, it solved our IE6
issues.


[jQuery] Re: Works in IE7 but not IE6

2009-04-09 Thread MauiMan2

meta http-equiv=Content-Type content=text/html; charset=utf-8 /

That's the META tag I have in there now. Should I change it?