Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Javascript issue - <script> language="javascript&


adam_j_bradley

Recommended Posts

I want to be able to call a remote function _and_ a local function

within my JS. How

do I go about doing this?

 

Code fragment follows...

 

---snip---

 

<script> language="javascript"

src='http://www.trustlogo.com/trustlogo/javascript/trustlogo.js'><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizab

le=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=1

50')

}

 

//--></script>

 

---snip---

 

Thanks in advance!

Adam

Link to comment
Share on other sites

Yep, that looks like it would work. What is the problem you are having?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Daemon,

 

Thanks for your reply... I was munging something! I was doing something like this

 

---snip---

<script language="javascript" src='http://www.trustlogo.com/trustlogo/javascript/trustlogo.js'><!--

var selected;

 

function selectRowEffect(object, buttonSelect) {

if (!selected) {

if (document.getElementById) {

---snip---

 

when I should have been doing this...

 

---snip---

<script language="javascript" src='http://www.trustlogo.com/trustlogo/javascript/trustlogo.js'></script>

<script language="javascript"><!--

var selected;

 

function selectRowEffect(object, buttonSelect) {

if (!selected) {

if (document.getElementById) {

---snip---

 

Adam

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...