Jump to content


Photo

confused about php and javascript and ajax


  • Please log in to reply
6 replies to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 01 July 2006 - 04:19 AM

i am working on a large php project a clone.

within this php script i got to let users have an live status for the links showing.

for example a user can look at the live status of the most used links .

if a link is pressed the link gets a added number example one to the database on the live status page the users can see the links that are getting pressed via the counter adding the links up.

know all thats done via php the problam i got is if a user has not got javascript enabled then the users can not see the live status working.

i dont know anythink about ajax but had a go but the problam i need to know is ajax just an exstention of javascript in other words if you have javascript disabled does it also disable ajax.

if ajax is disabled what programming language can i use to have the live status to be live aways via server side programming.





Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#2 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 01 July 2006 - 06:02 AM

To answer your first question...Yes if you disable javascript it will disable "Ajax" since ajax stands for Asynchronous JavaScript and XML ... if you take out the javascript...it kinda kills the rest. Remember that ajax is a mesh of technologies...not like php which is just one.

For your second question...I really don't know what other programming language you can use, maybe coldfusion...but i don't really know a lot about that. Besided that my best guess would be that you are SOL.

If I come up with anything else I'll let you know

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 01 July 2006 - 06:05 AM

Thank you very much.

i think its a problam for all when a user can disable javascript dam lol

cheers.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#4 Drumminxx

Drumminxx
  • Members
  • PipPipPip
  • Advanced Member
  • 92 posts
  • LocationUSA

Posted 01 July 2006 - 06:13 AM

you also will need to take into consideration "Browser Support" IE being the most the most popular supports only javascript and vbscript and since most other browsers do not support vbscript you'll run into compatibility issues so that leaves javascript.

ok now we are off topic  ;)
:: gucci.com ::
:: blockbuster.com ::

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

#5 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 01 July 2006 - 06:15 AM

One thing that you can do (but won't really solve anything) is to see if the user has java script enabled...if they don't display an error message and give them instructions on how to change it.

<script type="text/javascript">
<!--
document.write("If this text is displayed, your browser supports scripting and has JavaScript enabled!")
//-->
</script>
<noscript>JavaScript is NOT enabled!</noscript>

Hope this helps,
-Chris

#6 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 01 July 2006 - 06:19 AM

you could have a flash object imbedded on your webpage as the interface.  You can setup a "live feed" through actionscript.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#7 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 01 July 2006 - 06:35 AM

oh yeah...flash! duh! haha

a lot more bulky then javascript...but it would work




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users