Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Javascript problem please help me?

Javascript problem please help me?

Scheduled Pinned Locked Moved Web Development
helpjavascriptagentic-aitutorialquestion
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srinivassam
    wrote on last edited by
    #1

    Hi all, I have one doubt , i have one buttons 1.NO in this buttons onError event i am calling one function agent_available(). if i click on NO button if agents are online means i want to display imagebutton1(chat image) that time imagebutton2(oops error image) is disble position. if i click on NO button if agents are not online means i want to display imagebutton2(oops error image) that time imagebutton1(chat image) is disable position. how to do this with in one function. Thanks & Regards Rama.

    rama

    L I 2 Replies Last reply
    0
    • S srinivassam

      Hi all, I have one doubt , i have one buttons 1.NO in this buttons onError event i am calling one function agent_available(). if i click on NO button if agents are online means i want to display imagebutton1(chat image) that time imagebutton2(oops error image) is disble position. if i click on NO button if agents are not online means i want to display imagebutton2(oops error image) that time imagebutton1(chat image) is disable position. how to do this with in one function. Thanks & Regards Rama.

      rama

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Use AJAX, When user clicks on NO button, it send a server call to check status of Agent. It may return true/false. Depending on this value render Image of Control. I think this may solve your problem.

      1 Reply Last reply
      0
      • S srinivassam

        Hi all, I have one doubt , i have one buttons 1.NO in this buttons onError event i am calling one function agent_available(). if i click on NO button if agents are online means i want to display imagebutton1(chat image) that time imagebutton2(oops error image) is disble position. if i click on NO button if agents are not online means i want to display imagebutton2(oops error image) that time imagebutton1(chat image) is disable position. how to do this with in one function. Thanks & Regards Rama.

        rama

        I Offline
        I Offline
        il_manti
        wrote on last edited by
        #3

        Are you looking for the code to check if agents are online? Or are you looking for code to disable and enable image buttons?

        In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups