I need to run a job that finds a hidden input's default value and stores it in a database. SQLDOM is very close to what I need, but the returned DOM in a table strips out the hidden attribute and the default value from inputs. I'm slowly workign my way through spactDOMLoad, but I'm getting lost. Any suggestions on mods I could make to include the default value?
Thanks,
--Tim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The HTML attributes should be parsed out and stored in #tblDOMAttribs
This should let you JOIN the tag to the attribute, something like this:
SELECT
d.Tag,
d.ID,
d.Name AS TagName,
d.TextData,
a.Name AS AttribName,
a.Value AS AttribValue
FROM
#tblDOMHierarchy d --or you can use #tblDOM
LEFT JOIN #tblDOMAttribs a ON
d.DEID = a.DEID
In other words, the default value should be in an Attribute named
"placeholder", and thus #tbllDOMAttribs.Value should contain the actual
default value itself.
Let me know if you have further questions.
FYI, I'm in the process of moving SQLDOM to GitHub.com, and as I do so I
will be providing a few updates. (I've kind of neglected the SourceForge
repository.)
Sincerely,
David Rueter
drueter@assyst.com
From: Tim Deagan [mailto:tdeagan@users.sf.net]
Sent: Thursday, April 06, 2017 11:05 AM
To: [sqldom:discussion]general@discussion.sqldom.p.re.sf.net
Subject: [sqldom:discussion] Retrieving Hidden Input Values
I need to run a job that finds a hidden input's default value and stores it
in a database. SQLDOM is very close to what I need, but the returned DOM in
a table strips out the hidden attribute and the default value from inputs.
I'm slowly workign my way through spactDOMLoad, but I'm getting lost. Any
suggestions on mods I could make to include the default value?
I need to run a job that finds a hidden input's default value and stores it in a database. SQLDOM is very close to what I need, but the returned DOM in a table strips out the hidden attribute and the default value from inputs. I'm slowly workign my way through spactDOMLoad, but I'm getting lost. Any suggestions on mods I could make to include the default value?
Thanks,
--Tim
Hi, Tim. Good to hear from you.
The HTML attributes should be parsed out and stored in #tblDOMAttribs
This should let you JOIN the tag to the attribute, something like this:
SELECT
d.Tag,
d.ID,
d.Name AS TagName,
d.TextData,
a.Name AS AttribName,
a.Value AS AttribValue
FROM
#tblDOMHierarchy d --or you can use #tblDOM
LEFT JOIN #tblDOMAttribs a ON
In other words, the default value should be in an Attribute named
"placeholder", and thus #tbllDOMAttribs.Value should contain the actual
default value itself.
Let me know if you have further questions.
FYI, I'm in the process of moving SQLDOM to GitHub.com, and as I do so I
will be providing a few updates. (I've kind of neglected the SourceForge
repository.)
Sincerely,
David Rueter
drueter@assyst.com
From: Tim Deagan [mailto:tdeagan@users.sf.net]
Sent: Thursday, April 06, 2017 11:05 AM
To: [sqldom:discussion] general@discussion.sqldom.p.re.sf.net
Subject: [sqldom:discussion] Retrieving Hidden Input Values
I need to run a job that finds a hidden input's default value and stores it
in a database. SQLDOM is very close to what I need, but the returned DOM in
a table strips out the hidden attribute and the default value from inputs.
I'm slowly workign my way through spactDOMLoad, but I'm getting lost. Any
suggestions on mods I could make to include the default value?
Thanks,
--Tim
Retrieving Hidden Input Values
https://sourceforge.net/p/sqldom/discussion/general/thread/5b8304fe/?limit= 25#f2b6
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/sqldom/discussion/general/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/