Skip navigation
elektron4
Currently Being Moderated

generate changes in javascript

May 24, 2012 8:26 AM

Tags: #dreamweaver #extension #extensions #dreamweaver_dom

Hi
I cant find solution to make changes in javascript code.
I use dom.addJavaScript() function to add javascript in to page.

Result will be something like:

<script>

$(function(){

/*... some js code*/

});

</script>

 

Thats ok.

Now, when user use extension second time, i need to keep some js code and add some extra js code between curly brackets.
Sample:

<script>

$(function(){

/*... some js code*/
/*....second js code*/

});

</script>

 

How to do that?
or
How to make changes in javascript like DOM objects in HTML?

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points