Jump to content

Get id


BrunoDosSantos

Recommended Posts

1 minute ago, BrunoDosSantos said:

Hello everyone, I'm new to unigui, but already searched in several post and could not find anywhere. I am working with URLFrame and within this urlFrame I need to get the id of a component in html to make some modifications with javaScript, but I am unable to get the id of the component.

Hello,

Which edition and build of UniGUI are you using?

What do you have in UrlFrame? You can not always get access to the frame...

Link to comment
Share on other sites

Version: 1.90.0.1506;

 <button type="button", id="teste" onclick="top.ajaxRequest(top.MainForm.URLFrameTabela, 'btnAtualizar')" class="btn-sm btn-outline-light    notification">
        <i class="fa fa fa-sync">
        </i>
          Atualizado
          <span class="nada"> </span>
  </button>
 

i need to get the id test

Link to comment
Share on other sites

1 hour ago, BrunoDosSantos said:

<button type="button", id="teste" onclick="top.ajaxRequest(top.MainForm.URLFrameTabela, 'btnAtualizar')" class="btn-sm btn-outline-light    notification">
        <i class="fa fa fa-sync">
        </i>
          Atualizado
          <span class="nada"> </span>
  </button>
 

Hi, I managed to solve the problem, I realized that when urlFrame was placed it created an IFrame in html so to get the component inside you have to use the command: $(IFrame).contents().find(idHtmlGet) . Change IFrame by ID IFrame (Search Developer Tool) and idHtmlGet swap with the ID you want to get

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...