EditWrx Knowledge Base Home
 Search       Login   Register   Members   Help   Home 
Search by username


Ajax Tabs and EditWrx?
 Moderated by: Keith  
 New Topic   Reply   Print 
AuthorPost
affinitymc
Member
 

Joined: Sat Feb 4th, 2006
Location:  
Posts: 21
 Posted: Thu Oct 26th, 2006 08:28 pm
 Quote  Reply 
Has anyone attempted to use EditWrx along with Ajax tabs? I am using tabs for a clients site, they like it, but unfortunately, unlike includes where I can set them up to be edited on the page, Ajax tabs function differently. Still trying to figure out how to do it, other than opening up each included page separately.

The tabs script I am using is available here:

http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

A classy example of tabs can be seen on Yahoo's homepage http://www.Yahoo.com

Cheers

Brian W.

Last edited on Thu Oct 26th, 2006 08:29 pm by affinitymc

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 578
 Posted: Fri Oct 27th, 2006 01:16 am
 Quote  Reply 
The content that is brought onto the page by the Ajax call is not part of that page and can not be edited while viewing that page. You need to edit the file containing the Ajax content directly.

affinitymc
Member
 

Joined: Sat Feb 4th, 2006
Location:  
Posts: 21
 Posted: Fri Oct 27th, 2006 05:33 am
 Quote  Reply 
Thought so, and that's how I'm doing it right now. However EditWrx does show the Ajax content when I click on a tab, and it is editable. However, when it is saved, it overwrites the content of the host page.

Any safeguards/workarounds against an editor doing this? :-)

Last edited on Fri Oct 27th, 2006 05:37 am by affinitymc

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 578
 Posted: Fri Oct 27th, 2006 05:27 pm
 Quote  Reply 
Place the area on the page where the Ajax content is displayed inside of an excludeblock.


<div excludeblock="1">

ajax content

</div><!-- excludeblock="1" -->

 

When EditWrx saves a page it first reads the excludeblocks in the file into memory, then overwrites the file with what it was sent from the browser, then overwrites any excludeblocks now in the file with the excludeblocks it has in memory.

 

 

Last edited on Fri Oct 27th, 2006 05:27 pm by Keith


 Current time is 05:12 pm




Powered by WowBB 1.62 - Copyright © 2003-2004 Aycan Gulez