<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calling JavaScript function after ASP button postback arcgis JavaScript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638398#M59628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! I've not done much with ASP.net personally but this solution looks best for your app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as getDraw() waits for the data from the database, you should have no issues.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2014 15:02:33 GMT</pubDate>
    <dc:creator>JonathanUihlein</dc:creator>
    <dc:date>2014-04-08T15:02:33Z</dc:date>
    <item>
      <title>Calling JavaScript function after ASP button postback arcgis JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638395#M59625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Basically I have an event on an ASP.Net button in an Update Panel which retrieves x and y coordinates from a database. Then I am populating a hidden field with these coordinates and I have a JavaScript function which displays points according to the coordinates retrieved from the database and stored in the hidden field. My problem is how do I call this function after the hidden field is populated, with out refreshing the page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 09:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638395#M59625</guid>
      <dc:creator>ChristianDebono</dc:creator>
      <dc:date>2014-04-07T09:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling JavaScript function after ASP button postback arcgis JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638396#M59626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Basically I have an event on an ASP.Net button in an Update Panel which retrieves x and y coordinates from a database. Then I am populating a hidden field with these coordinates and I have a JavaScript function which displays points according to the coordinates retrieved from the database and stored in the hidden field. My problem is how do I call this function after the hidden field is populated, with out refreshing the page.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to set up a callback function for when you receive the x,y data from your database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this callback, trigger the display function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally, I would use dojo/Deferred. &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/documentation/tutorials/1.9/deferreds/"&gt;http://dojotoolkit.org/documentation/tutorials/1.9/deferreds/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638396#M59626</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-04-07T15:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calling JavaScript function after ASP button postback arcgis JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638397#M59627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks jonathan uihlein for your reply. I have solved this problem by calling the JavaScript function from the click event of the submit button in asp.net&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;ScriptManager.RegisterStartupScript(this, this.GetType(), "key", "drawPoints();", true);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 11:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638397#M59627</guid>
      <dc:creator>ChristianDebono</dc:creator>
      <dc:date>2014-04-08T11:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling JavaScript function after ASP button postback arcgis JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638398#M59628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! I've not done much with ASP.net personally but this solution looks best for your app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as getDraw() waits for the data from the database, you should have no issues.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 15:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calling-javascript-function-after-asp-button/m-p/638398#M59628</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-04-08T15:02:33Z</dc:date>
    </item>
  </channel>
</rss>

