[jQuery] jQuery and div/iframe/pane content replace

2010-01-22 Thread Eugene Hourany
Hi everyone,

I'm using jQuery to power all the nice animation effects and such. But I'm
also using it to make my DOM life easier too.

With that, here's what I want to do:

When you click on a link (in this case, an ), the  to its right is
replaced with new content. I tried to do this earlier with an  but I
think it's overkill for what I want.

I'm working on this page to get a "non-flash" version running because of SEO
compliance: http://www.theportalgrp.com. So, for example, clicking on
"services" will bring up the services div on the right. Would using jQuery
objects that contain the s be better, and then do a content replace?

And I don't know if .toggle() is better, or .click() or which function to do
what I want.

Any help would be greatly appreciated.

Thanks!

Eugene


[jQuery] Hello all!

2009-12-08 Thread Eugene Hourany
Hello everyone,

I'm new to this group, and had a question concerning how to get a movie to
popup on click in a different window, but have that nice light glow effect
in the frame. I was told that jQuery could do that.

Thanks,

Eugene aka "Eggers"


[jQuery] why i dont see my post

2009-01-14 Thread Eugene Sosnovschi
I'm trying to create my post with a question but I don't see it in the list
of themes . why ?

 

My nickname "seugenev"

 

Eugene.



[jQuery] Re: load css dynamically

2008-08-19 Thread Eugene

In a perfect world: yes.

My situation is as follows: only about 1% of my sites visitors would
use a feature that requires thickbox, so i load it's js and css only
on demand.


On Aug 11, 4:46 pm, "Andy Horsman" <[EMAIL PROTECTED]> wrote:
> Honestly I think a cleaner way of doing this is have the CSS styles outside
> the javascript code and then use addClass
>
> On Mon, Aug 11, 2008 at 9:58 AM, Mike Alsup <[EMAIL PROTECTED]> wrote:
>
> > > I am trying to load css dynamically to the document by jquery.
> > > It works in firefox fine, but not in IE.
> > > any idea?
>
> > > code:
>
> > > $("").attr({"rel":"stylesheet","type":"text/
> > > css","href":css_href,
> > > "media":"screen"}).appendTo(document.getElementsByTagName("head")[0]);
>
> > var head = document.getElementsByTagName('head')[0];
> > $(document.createElement('link'))
> >    .attr({type: 'text/css', href: css_href, rel: 'stylesheet, media:
> > 'screen''})
> >    .appendTo(head);
>
> > Note that this code assumes the presence of a head element.  Ideally
> > you'd make this a bit more defensive and create that element if it
> > doesn't exist.


[jQuery] Re: :contains ... troubling behavior

2008-05-29 Thread Eugene Van den Bulke

On Thu, May 29, 2008 at 2:45 AM, Dave Methvin <[EMAIL PROTECTED]> wrote:
>
>> it does the job but I still find the behavior unexpected :P
>
> How could the documentation be changed to clarify the function so that
> you would expect its behavior?
>
> http://docs.jquery.com/Selectors/contains#text

The doc is very clear ... it's the way I tried to use it that yield a
result I can't make sense of :

foo + $(":contains(foo)") ) => [a foo] (1)
foo + $("a:contains(foo") ) => [a foo] (2)

for some reason with (2) I can chain commands but not with (1) ... (1)
appear faded in Firebug.

Thanks,

EuGeNe -- http://www.3kwa.com


[jQuery] Re: :contains ... troubling behavior

2008-05-29 Thread Eugene Van den Bulke
a screen shot to illustrate my point ...

if I can venture an non-expert diagnostic, it seems that in the second
case jQuery considers that the html in the contains() statement is the
"context" of the statement and not the html document ...

EuGeNe -- http://www.3kwa.com
<>

[jQuery] Re: :contains ... troubling behavior

2008-05-28 Thread EuGeNe

it does the job but I still find the behavior unexpected :P

thanks

EuGeNe -- http://www.3kwa.com

On May 28, 12:27 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I suspect that the problem has to do with putting an HTML string  
> inside thecontainsparens, when it is supposed to take only text.  
> Does it work if you just do $('a:contains(undo)') ?
>
> --Karl
> 
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On May 27, 2008, at 2:06 PM, EuGeNe wrote:
>
>
>
> > Hi there,
>
> > I am troubled by the behavior of the :containsfilter
>
> > I have an a tag
>
> > undo
>
> > I can select it with
>
> > $("a.undo") and play with the chain not problem e.g. $
> > ("a.undo").remove() works fine
>
> > if I use
>
> > $(':contains(undo)')
> > or
> > $('a:contains(undo)')
> > or
> > $('a.undo:contains(undo)')
>
> > I get the "same" result "pointing" to the same tag but I can't play
> > with it i.e. whatever I do to it doens't have an impact on the DOM.
>
> > I am sure it is something I don't understand about JS or jQuery ...
> > could somebody enlighten me?
>
> > Thanks
>
> > EuGeNe --http://www.3kwa.com


[jQuery] :contains ... troubling behavior

2008-05-27 Thread EuGeNe

Hi there,

I am troubled by the behavior of the :contains filter

I have an a tag

undo

I can select it with

$("a.undo") and play with the chain not problem e.g. $
("a.undo").remove() works fine

if I use

$(':contains(undo)')
or
$('a:contains(undo)')
or
$('a.undo:contains(undo)')

I get the "same" result "pointing" to the same tag but I can't play
with it i.e. whatever I do to it doens't have an impact on the DOM.

I am sure it is something I don't understand about JS or jQuery ...
could somebody enlighten me?

Thanks

EuGeNe -- http://www.3kwa.com


[jQuery] Latest jquery breaks onsubmit in IE7

2008-03-07 Thread Eugene Morozov

Hello,
I have a login page (I know it's not terribly secure, but the code
wasn't written by me, I'd write it differently, that's not the point
currently) with two forms: proxy_login and login.

Login form is defined as 
Javascript function 'login' copies username and sha1 hash of the
password to the proxy_login hidden form fields, submits proxy_login
form and returns false.

Everything works fine when jquery 1.1.3.1 used on the page (it's not
used by login function at all, by the way). When jquery is upgraded to
the latest version, login sequence continue to work fine in the
firefox browser, but in IE7 (didn't test in IE6) first login_proxy
form is correctly submitted, then `login` form with plaintext password
is submitted despite the fact that onsubmit handler returned false!

Does anyone know a workaround?
Eugene