Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-18-2013, 03:35 PM   PM User | #1
jakovbak
New to the CF scene

 
Join Date: Mar 2013
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
jakovbak is an unknown quantity at this point
Page dependent variable - how to?

Hello people!
I have absolutely no knowledge of javascriptnig but I do know what I need in the code I'm using. Let me explain:

I have this part of code:

Code:
slides:     [
         // Slideshow Images
         {Gallery dir='xxx' template='supersized'}
         ]
I would like to make this Gallery dir='xxx' part more dynamically oriented. How can one make this 'dir' variable become "page dependent"? For example:
- if one is browsing PAGE A on some website then the one should see GALLERY A displayed.
- when one switches to PAGE B then GALLERY B is displayed and so on...

If there is someone who could help me on this I would really appreciate it!

(Let me know if there's not enough info provided in this question. If so, I apologize, I don't know exactly how to treat informations when it comes to coding, it's really not my field!)
jakovbak is offline   Reply With Quote
Old 03-18-2013, 04:14 PM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
Quote:
Originally Posted by jakovbak View Post
I have this part of code:

Code:
slides:     [
         // Slideshow Images
         {Gallery dir='xxx' template='supersized'}
         ]
I doubt that ... because this is not valid Javascript code. So if you have this code, it won't be working already.

What do you want to achieve? Please try to explain in your own words without assuming possible answers.
devnull69 is offline   Reply With Quote
Users who have thanked devnull69 for this post:
jakovbak (03-18-2013)
Old 03-18-2013, 05:44 PM   PM User | #3
jakovbak
New to the CF scene

 
Join Date: Mar 2013
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
jakovbak is an unknown quantity at this point
It's just a part of code that is working but with hard-coded path I'm trying to change to dynamic variable. I've sent you PM with details...
Tnx!
Regards,
Jakov
jakovbak is offline   Reply With Quote
Old 03-18-2013, 09:26 PM   PM User | #4
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
You should post the relevant part here ... you forgot to mention that this question is specific for the one CMS you are using. I cannot help you here.
devnull69 is offline   Reply With Quote
Users who have thanked devnull69 for this post:
jakovbak (03-18-2013)
Old 03-18-2013, 11:09 PM   PM User | #5
jakovbak
New to the CF scene

 
Join Date: Mar 2013
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
jakovbak is an unknown quantity at this point
I wasn't aware of the fact that CMS has so much influence on this. But, as I mentioned, this is way beyond my knowledge in this field (I'm a designer...).
Anyway, thank you for your time and will to help!
Have a nice rest of the evening and I'll keep on looking elsewhere. Unless you find it challenging? If you do, let me know what you need to see and I'll post it.
Tnx again and best regards!
Jakov
jakovbak is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:48 PM.


Advertisement
Log in to turn off these ads.