Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 866 Vote(s) - 3.53 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MVC Framework - Server-side DOM manipulation

#1
<p>I'm building an MVC framework, and I'm looking for native solutions / frameworks / tag libraries to draw from or to replace my framework entirely.</p>
<p>I'm interested in the following features specifically:</p>
<ul>
<li>server-side DOM manipulation</li>
<li>server-side events (page reload, form submit, node insertion, etc.)</li>
<li>traversing the DOM tree using css selectors</li>
<li>validation of html nodes nesting</li>
<li>validation of html nodes allowed attributes</li>
<li>support for tag libraries / user controls</li>
</ul>
<p>Pretty much what you get with JavaScript, but on the server-side and with some little extras.</p>
<p>Any solution will do (even if partial), any language will do, any pointers are appreaciated (even from client-side languages, as long as it's possible to check the source code). Dealing with malformed html is <strong>not</strong> a prerequisite. Outputting valid markup is a big plus.</p>
<hr />
<p>Please offer practical solutions by pointing the language/framework that is being discussed and, if possible, what features it provides.</p>
Reply

#2
If you load your page into a DOM-parser you would be able to modify it from there. Then outputting it to the output buffer seems trivial.

But you would need to store the entire document in memory, which will inflict on the performance.

Reply

#3
So, jQuery has a sort of selectors API implemented, I guess I can take a look at their source code. Also, PHP has support for XPath, this could help too.
Reply

#4
have you checked out aptana jaxer?
Reply

#5
Found a php html dom parser that also implements some html selectors here: [

[To see links please register here]

][1]


[1]:

[To see links please register here]

Reply

#6
Fizzler uses HTMLAgility pack and adds a server side queryselectorall to provide css selection:

[To see links please register here]

Reply

#7
Maybe you are looking for [ItsNat][1]


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through