Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Can't save product with Java in description!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-14-2005, 11:07 AM
 
fuzzy fuzzy is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: oHIo
Posts: 77
 

Default Can't save product with Java in description!

I'm totally lost, frustrated and almost bald! But still having fun.

K, here's the Challenge of the Day.
When trying to "add a new product" that has any java code in the detailed
description, cart says "Saved" and it does, but...it wipes out the "detailed description" part.
In other words, it saves everything But the Detailed description.

Here's an example of the Java.
Code:
<td width="42%" valign="top"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> [img]http://www.rdcenterprises.com/images/garmin/3dicon.gif[/img]360&deg; Product View Specifications</td>
I don't know squat about java! I generated the code with Dreamweaver and it works great
in a regular html page.

Sooo... would ya Please be so kind as to tell me what I'm overlooking/screwing up?
__________________
X-Cart 4.0.12 Gold
Linux
Reply With Quote
  #2  
Old 02-14-2005, 11:14 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Ummm...I highly doubt you will be able to put javascript in the detailed description field. What exactly are you trying to do?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-14-2005, 12:19 PM
 
fuzzy fuzzy is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: oHIo
Posts: 77
 

Default

Thanks for the quick response!

I'm trying to create a link that pops up a chromeless window.
ie. certain size, no scroll, no status, no resize etc.

This is Not needed for every link, image etc., only for a couple swf files.

hummm....
Is there a way to make the target page (rino.html) resize & not show
the scroll, status, etc. using java IN the target page its self?

Thanks!
__________________
X-Cart 4.0.12 Gold
Linux
Reply With Quote
  #4  
Old 02-14-2005, 12:22 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Take a look at what Boomer did with the detailed image popup.

http://forum.x-cart.com/viewtopic.php?t=11621

Perhaps you can reverse engineer it for your needs
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-14-2005, 01:58 PM
 
fuzzy fuzzy is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: oHIo
Posts: 77
 

Default

Boomer has a cool mod! I'll be playing with that shortly.

But it's way to much for the task at hand. Guess I'm thinking of something
to simple. LOL!!
__________________
X-Cart 4.0.12 Gold
Linux
Reply With Quote
  #6  
Old 02-14-2005, 02:49 PM
 
1day2004 1day2004 is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 115
 

Default

I had the same problem. The default settings in X-cart do not allow you to use JS in the Product Descriptions. Refer to this thread for the solution:

http://forum.x-cart.com/viewtopic.php?t=16161&highlight=.

You will then be able to use Javascript in the Product Descriptions.
__________________
Version 4.0.8 Live
Reply With Quote
  #7  
Old 02-14-2005, 04:25 PM
 
fuzzy fuzzy is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: oHIo
Posts: 77
 

Default

WHOOOOHOOOO!!!
THAT'S what I was a talkin bout! \ \ \

Ya just made my WEEK!
Thank You Thank You Thank You Thank You Thank You Thank You
Thank You Thank You Thank You Thank You Thank You Thank You!

Don't know how I missed that post though.

But Thanks for overlooking that & helping me out!!
__________________
X-Cart 4.0.12 Gold
Linux
Reply With Quote
  #8  
Old 02-14-2005, 11:51 PM
 
1day2004 1day2004 is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 115
 

Default

Wow...I don't think I've ever received 12 thank you's in a row before.


You're welcome x 12.
__________________
Version 4.0.8 Live
Reply With Quote
  #9  
Old 02-17-2005, 12:16 PM
 
fuzzy fuzzy is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: oHIo
Posts: 77
 

Default

Now 1day2004, not all of those are yours. Ya gots to share a couple of them! LOL!!

Now, I'm off to see how to do the same thing for pages.php.

Would be nice if cart had the option of "If only 1 Master allow whatever
they want to input wherever they want to input it."

Be nice for us Sole Provider folks.
__________________
X-Cart 4.0.12 Gold
Linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:47 PM.

   

 
X-Cart forums © 2001-2020