Skip to main content
Question

Javascript to execute three URLs and then do a quiet jgrowl

  • October 25, 2020
  • 0 replies
  • 66 views

MarkShnierYou
Forum|alt.badge.img+24
I have this code which works to execute three URLs and then refresh the page.  But the use case is a table with 1 million records and the refresh is too slow.

"javascript: {" &
"$.get('" & $URLONE & "');" &
"$.get('" & $URLTWO & "');" &
"$.get('" & $URLTHREE & "');" &
"location.reload();" &
"}"

Does anyone know the equivalent code to execute three URL and pop up a green jGrowl message without refreshing the page?


------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------

MarkShnierYou
Forum|alt.badge.img+24
Answering my own question:


"javascript: {" &
"$.get('" & $URLONE & "');" &
"$.get('" & $URLTWO & "');" &
"$.get('" & $URLTHREE & "');" &
"$.jGrowl('Popup message goes here', {life: 3000, theme: 'jGrowl-green'});" &
"}"

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------

Forum|alt.badge.img+14

Mark,

Do you know if you can perform both, the reload AND the jgrowl (in that order?) 

I tried simply adding the reload line before the jgrowl with no luck. I realize we are at the end of the life cycle for this, but seeing as how it wont break int he future, i figure id get one last use out of it lol.



------------------------------
Mike Tamoush
------------------------------