vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [Anyone] Popup For Birthday List - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
[Anyone] Popup For Birthday List (31st Oct 08 at 10:19am UTC)
Ok I have been trying and I can not get this to work for the life of me. What I am trying to do is use a js popup to display the list of birthday people's and I can't get it to work, all because the { } that are needed in the calling of the data ends up breaking the js.

Code:
 
  1. <script>
  2. function bdPopup(){ prompt("{birthdays}"); }
  3. </script>
  4. <a href="javascript: bdPopup();">{birthday_total}</a>
 


and I have even tried to use the number code for the { } and that doesn't work either:

Code:
 
  1. <script>
  2. function bdPopup(){ prompt("(birthdays)"); }
  3. </script>
  4. <a href="javascript: bdPopup();">&*#40;birthday_total&*#41;</a>
 


Edit: Remove the * from the number code and it will work, had to add it in or the code would convert

Can someone please help me get something that will work, and as soon as possible.
GlitchesSocom
Junior Member
**

[Avatar]
Will code JavaScript for food.

Posts: 67
Status: Offline
Gender: Male
Location: USA
Age: 34
Joined:  
Reputation: 16%  


pmwwwmsnyahooaimgtalkvForum
Re: [Anyone] Popup For Birthday List (10th Nov 08 at 3:30am UTC)
well I am pretty new to coding but my guess is that {birthdays} is not a global var and only work in templates but I am not sure.

Image
dog199200
Guest
Re: [Anyone] Popup For Birthday List (10th Nov 08 at 9:26pm UTC)
...thats where it is going to be used.... in the template, but hmm maybe i get talkt o ross and get the code he used for it and then recode it for a setup for global header or something
 Printable View

All times are GMT+0 :: The current time is 6:31am
Page generated in 0.2017 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums