Current User: Guest
Please consider registering

 
Search Forums:


 




Another AWP:: question

Post

flash - Member

11:48 pm - April 23, 2009

posts 4

 
1

I have disabled the AWP:: using the admin page and everything is working as expected. However, I have an "about" button on my site that both loads the about page and performs some javascript formatting. My problem is that in order to call both the link and the javascript the awp::about reappears in the address bar. Here's the code I'm using right now.

href="/about/" title="About" onclick="positions('about'); aWP.doit({'id': '2', 'type': 'nav', 'ths': this, 'nav': 'page', 'i' : 'awp_loop', 'force' : 1 }); return false;"

If I remove the 'onclick' part of the link, then the awp::about disappears but I don't get the javascript reformatting I need.


Is there an element that I can put in this aWP.doit line that would disable the awp:: from coming up?


My current work around is to drop the repositioning line into the about post itself, but this doesn't execute until the post is loaded which results in a lag between the click and the reposition - workable but not great.


Thanks


Flash

Helper - Guest

1:32 pm - April 26, 2009

 
2

flash - Member

11:15 pm - April 26, 2009

posts 4

 
3

Unfortunately that post you linked to is my first one on the subject...hence the topic of "another AWP" question. It is working mostly, but when I use the specific javascript call that I highlighted above, the awp:: comes back.


Thanks for the reply though


Flash

Aaron - Admin

2:20 pm - April 27, 2009

posts 382

 
4

I see what you mean now, you are going back to the old method. Replace the awp.doit that you hacked in with awp_nav_click(this);

flash - Member

1:16 am - April 29, 2009

posts 4

 
5

That did it


Thank you



Reply to Topic: Another AWP:: question

Name (Required):

EMail (Required):

Website):

Topic Reply:

HTML Editor
Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
3 + 7
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

 
 

About the Ajaxed WordPress forum

Most Users Ever Online:

35


Currently Online:

8 Guests

Forum Stats:

Groups: 1

Forums: 3

Topics: 186

Posts: 487

Membership:

There are 1163 Members

There have been 149 Guests

There is 1 Admin

There are 0 Moderators

Top Posters:

jakemc - 5

fromgrannie - 5

flash - 4

BAM - 4

Siam - 4

tombyrnes - 4

Administrators: Aaron (382 Posts)