The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Javascript replace string
robby
post Apr 2 2009, 06:15 PM
Post #1


Newbie
*

Group: Members
Posts: 11
Joined: 22-December 08
Member No.: 7,386



My apologies if this is in the incorrect forum, I just need a little help.

I belong to another forum and included within the site are groups. I'm suggesting an idea and I'd like to provide a real, working example. Here's the page. Basically, what I'm trying to make is so that when you click 'join group' then '(0)' under 'requests' will change to '(1)'. I've tried a few different possible scripts but I'm a javascript newbie. Any help would be appreciated.

One more thing, can html and/or javascript be displayed in an 'alert'?

Thanks smile.gif

P.S. I know the page is a little strange. At times, the actual site can be strange tongue.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 2 2009, 06:27 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



The only thing I can answer is this.
QUOTE

One more thing, can html and/or javascript be displayed in an 'alert'?

An alert is created by JavaScript and it can only display text (that can be created by
JavaScript).

CODE
alert('Hallo!');
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Apr 2 2009, 08:41 PM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I've moved this to the Client-side Scripting forum.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 12:12 AM