Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 07 Sep 2007, 16:03
Opserty Opserty is offline
 
Join Date: Apr 2007
[JS] There must be a better way to do this

Ok a little background info first. Basically put we have added a couple of AJAX menus to our postbit template to enable our moderators to hand out warns and bans quickly without the need to leave the page. I basically hacked together a bit of Javascript which I found using good old google. However I'm almost certain there is a better way to do what we are doing because at the moment we have to output a whole javascript function (shown below) for each post.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Our form looks something like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I tried merely sending the request via a single function, however I found that it is not possible to 'reset' the result and therefore it is not possible to warn more then once on a page. Maybe I am doing something wrong?

P.S. I'm not a big JS user so don't rip my head off, please.

Thanks in advanced.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:59.

Layout Options | Width: Wide Color: