Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityEverything ElseGeneral Use (Moderators: scott, DanO, Marty)Problem with links in "Select Box" value
Pages: [1]   Go Down
Print
Author Topic: Problem with links in "Select Box" value  (Read 485 times)
0 Members and 1 Guest are viewing this topic.
gbengston
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: August 30, 2003, 02:42:00 AM »

I am trying to use HTML in the select box option value.  This way I can have the event be a location with the address showing up just by selecting the event name.

I have HTML enabled in the calendar settings and auto-link is turned on.  I am able to have bold tags and line break tags work correctly but the option value box is not letting me use simple link tags (ie. <a href..>.  For some reason it will not accept the equals sign when I try to save the option value. Once it gets to the equals sign it cuts off everything from that point on.  I take out the equals sign and then it all show up (however, without the equals sign the link will obviously not work because the html is now incorrect).

Also, the auto link does not seem to work within the option value of the select box.  

Any ideas as to what I'm doing wrong?

Thanks in advance.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: August 30, 2003, 01:05:00 PM »

** the auto link does not seem to work within the option value of the select box. **

That's probably because it would be invalid HTML code to have an <a href= tag inside of a select form field tag.

If you wanted to have a URL in a select form field, you would have to devise some other means to activate it besides an <a href tag. Something like that is usually done via JavaScript using an onSelect() or onChange() event handler. I do not know how you'd go about using such a mechanism in CalendarScript.

Dan O.

------------------

Logged
gbengston
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: August 30, 2003, 03:40:00 PM »

Hi DanO,

Thank you for replying to my question.  If that is the case, do you know any other way with CalendarScript that I can have a relational database type of action where I would select a name of the club (in my case the club that my band will play) and then it will automatically insert a description of the club which will include the address and web address?  

I guess I could have a text area where I manually put in the description each time but that seems unnecessary.  I would think there would be a way to select the club name from a select list and have the associated contact information for the club appear on the calendar.  I'm just trying to display where my band is playing on a given day and provide our fans the address of the club and a link to the club's website.  What I'm doing now is including the address of the club in the select box of the event field but like I said only bold tags and line breaks work (no links).  Maybe there is something that I haven't thought of that would do what I'm hoping.

Any thoughts?

Thanks,

Greg

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: August 30, 2003, 04:35:00 PM »

** I would think there would be a way to select the club name from a select list and have the associated contact information for the club appear on the calendar. **

It is likely possible to make something like that as a plug-in to CalendarScript but I can't think of any way to do it with the script as it comes.

If the clubs are always the same, you could hard code that information into the template and display the appropriate details using a conditional on the club event field.

Dan O.
Unofficial CalendarScript - Mods and Plugins site

[This message has been edited by DanO (edited August 30, 2003).]

Logged
gbengston
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: August 30, 2003, 06:29:00 PM »

Thanks DanO.

I'll try going the route of the conditional content.  

I really appreciate your taking the time to answer my questions.

-Greg

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: