Welcome, Guest
  • Page:
  • 1

TOPIC: Element ID

Element ID 3 years, 9 months ago #2000

Ich erläutere mal das bestehende Problem. Beispiel Contact Form. Das Erste Feld ist das Feld Name, welches ald ID eigentlich cf_name hat. Und so siht es im Quellcode aus

<div id="ff_div1" style="position:absolute;z-index:0;left:51px;top:48px;"><input id="ff_elem1" style="width:300px;" maxlength="255" type="text" name="ff_nm_cf_name[]" value=""/></div>


Wie ihr erkennen könnt, ist der ursprungsname cf_name nirgendwo verzeichnet so, das mit einem Script nicht so einfach auf Werte von diesem Feld zugegriffen werden kan, ohne erst den Quelltext nach den IDs der felder zu durchsuchen, die ja momentan automatisch+ fortlaufend vergeben werden.


Mein vorschlag ist, das der Feldname im Quellcode so ausgegeben wird wie er bei der erstellung angegeben wurde also cf_name und nicht ff_elem1

<div id="ff_div1" style="position:absolute;z-index:0;left:51px;top:48px;"><input id="cf_name" style="width:300px;" maxlength="255" type="text" name="ff_nm_cf_name[]" value=""/></div>
  • Suli3
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 0
Last Edit: 3 years, 9 months ago by Suli3.
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.25 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint