Author Topic: Need help with Ajax-script  (Read 2472 times)

0 Members and 1 Guest are viewing this topic.

Offline Norseman

  • Member
  • *
  • Posts: 5
    • Vejret i Starreklinte
Need help with Ajax-script
« on: October 04, 2008, 10:09:51 AM »
Hi, all
I'm totally new at this and have been experimenting. First of all thanks for the scripts and your efforts.

On http://westweather.net on the right side you can see some of the script. It works, but there are a few things that don't. Fx %maxgstdirectionletter%
Can somebody tell me why? What am I missing?

And where does it get the condition language from. I need to translate it, but can't find it.

It's the same problem here http://westweather.net/ww_aktuelt.html

Thanks in advance for your help.

Norseman

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Need help with Ajax-script
« Reply #1 on: October 04, 2008, 01:03:40 PM »
Hi Norseman,

All of the ajax data appears to be working. The javascript is working correctly.
Some tags that are displayed looks like they are not being parsed by WD or not contained in the javascript. How do you parse those tags?
« Last Edit: October 04, 2008, 01:11:28 PM by curly »

Offline Norseman

  • Member
  • *
  • Posts: 5
    • Vejret i Starreklinte
Re: Need help with Ajax-script
« Reply #2 on: October 04, 2008, 02:52:50 PM »
Hi, Curly

Thanks for your answer.

I'm don't know what parse means, but I have just been told, that these tags %wdtags% needs to be updated from WD, and I haven't done that, so I'll try that.

Norseman

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Need help with Ajax-script
« Reply #3 on: October 04, 2008, 03:02:57 PM »
Parse is the same as update from WD.




Offline Norseman

  • Member
  • *
  • Posts: 5
    • Vejret i Starreklinte
Re: Need help with Ajax-script
« Reply #4 on: October 04, 2008, 03:13:17 PM »
Ah, okay.

I'm not quite sure how to set WD to update these settings. Would you know that?

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Need help with Ajax-script
« Reply #5 on: October 04, 2008, 03:49:47 PM »
Quote
I'm not quite sure how to set WD to update these settings. Would you know that?

I can think of three options that you have
  • Since you are already using ajax, you can combine those tags with what you have.
  • If the time interval between updates isn't a big concern, you can use php to display those tags.
  • Update your complete page as a template and ftp it.  (not recommended)

The first two options will require a little work but are the best way to update your settings. Either way, you will need to make a template that has those tags and have WD update it and then ftp it to your web site.
If you want to use those tags with your ajax javascript, the ajax file can be modified to get the data from the new updated file.
The simpler way would be to use php. The data would only update when the web page is entered or refreshed.




 

anything