Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 dynamic styles
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

2hats
Practical

36 Posts

Posted - 14 Apr 2008 :  07:41:15  Show Profile  Visit 2hats's Homepage  Reply with Quote
Hi,
I would like to be able to enter a style name (in Text1 properties)
such as <?=$cssClass['Text1']?>
However, when it gets exported, it becomes <?=$cssclass'text1'?>

(all lower case and [ stripped out). Is it possible to recognise
the php print <?= and not alter the class name?

A dynamic value such as <?=$value['Text1']?> is not changed during export.

Regards

s.dav
Site Admin

Italy
3364 Posts

Posted - 14 Apr 2008 :  10:04:12  Show Profile  Visit s.dav's Homepage  Reply with Quote
You are right, fixed in version 4.2 that will be released very soon.
Many thanks, if you have other tips like this let me know.

Regards, Davide
Go to Top of Page

2hats
Practical

36 Posts

Posted - 15 Apr 2008 :  06:46:27  Show Profile  Visit 2hats's Homepage  Reply with Quote
Thanks Davide.

Similarly for other form elements....option, radio, button etc
if possible.

Thanks again.
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 15 Apr 2008 :  12:09:29  Show Profile  Visit s.dav's Homepage  Reply with Quote
Obviously ;-)

Regards, Davide
Go to Top of Page

2hats
Practical

36 Posts

Posted - 16 Apr 2008 :  06:47:23  Show Profile  Visit 2hats's Homepage  Reply with Quote
Hi Davide,

Also in the option custom code, maybe a tab 'between tags' to allow
dynamic <option>..</option> generation, such as
<option value = "">Select Quantity Required </option>

<?php
For ($i=0; $i < count($orderOption); $i++) {
$order=$orderOption[$i];
?>

<option value = "<?php print $order ?>"<?php print selectOption($customer["order"],$order)?>><?php print $order ?></option>

<?php
}
?>

It can be fudged by using 'into Tag' and adding a > at the start of the php code, and leaving the last > off the php code.

Regards
Go to Top of Page

richinri
Expert

78 Posts

Posted - 16 Apr 2008 :  09:13:15  Show Profile  Visit richinri's Homepage  Reply with Quote
Just a thought - I have been told more than once to NEVER use any PHP abbreviated syntax on the net. It won't validate and causes problems with various servers depending on their PHP setup.

Richard
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 16 Apr 2008 :  10:08:17  Show Profile  Visit s.dav's Homepage  Reply with Quote
I don't know, where can I find a good PHP guide? I'm able to create samples only in ASP language :-(

Regards, Davide
Go to Top of Page

2hats
Practical

36 Posts

Posted - 17 Apr 2008 :  05:04:37  Show Profile  Visit 2hats's Homepage  Reply with Quote
Richard,

It's about having php (identified by <?= or <? print) not being modified by the export process. The web designer can
use any php they like, good or bad, or asp, their choice.
Also 'between tags' would allow any code (asp, php, or comments?) between <select> </select> tags.
Go to Top of Page

2hats
Practical

36 Posts

Posted - 17 Apr 2008 :  05:24:39  Show Profile  Visit 2hats's Homepage  Reply with Quote
Davide,
In the table object, code such as <?=$customer['order']?> gets converted on export to <?=$customer['order']?>

Can this be fixed?
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 17 Apr 2008 :  10:16:15  Show Profile  Visit s.dav's Homepage  Reply with Quote
<? and <% in a label and table object are always escaped; I'll try to maintain them as they can be useful ;-)

Regards, Davide
Go to Top of Page

2hats
Practical

36 Posts

Posted - 17 Apr 2008 :  10:18:32  Show Profile  Visit 2hats's Homepage  Reply with Quote
sorry,
above post shows < and > as ampersand lt; ampersand gt; after table export
Go to Top of Page

2hats
Practical

36 Posts

Posted - 18 Apr 2008 :  09:54:23  Show Profile  Visit 2hats's Homepage  Reply with Quote
Davide,
The table object looks quite good, but how do I get '<?' to show in cell, rather than '& lt;?'

To be useful, the cells need to be filled dynamically.

Regards
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 18 Apr 2008 :  17:31:43  Show Profile  Visit s.dav's Homepage  Reply with Quote
See 3 replies before this.

Regards, Davide
Go to Top of Page

2hats
Practical

36 Posts

Posted - 29 Apr 2008 :  00:42:16  Show Profile  Visit 2hats's Homepage  Reply with Quote
Davide
Can you please explain further.

I have tried various combinations of / and \ to no effect.
This is my understanding of escaping.

Also, the same problem occurs with the label object.

Is it possible to display <?=$productData[0]['pmProduct']?> in the label object, as I would
like to format the result. It could be done in html object, but not so visual.

Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000