-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.textContent not working properly #22
Comments
I can solve this partially doing that:
But in my old code I need after that add an input inside this
And that's much complicated in my case. Backing to the problem: Why using |
Why do you assume it is In any case, the Also, if you want better help, i actually need a lot less information, not more. There is so much going on there in your mish-mash of jQuery and HTML.js code. I need a smaller example of the problem that i can run, if i'm going to be able to help. Or, failing that, put your whole example up somewhere public (like jsfiddle) so that i can see it in action, at least. |
What I know is: When the table is empty, the same code works. I solve that using the create tag and set value syntax - Part of the code:
I identify what tag is and set the I set a lot But when the I don't really know how to explain it to you better, mainly because my English is not so good. But overall this is the problem. I was four hours trying to figure out if it was my mistake, but have not found anything yet. So I decided the way I told you above. For the moment it is working. I will try to simulate the same problem again, but now I am in doubt whether I continue using What do you advise? |
I'm glad you found a workaround. I still can't figure out the exact problem without having a runnable example. The code, despite its many quirky and inefficient parts, is not making it clear to me what's going wrong. I would certainly consider switching to DOMx, but i can't say that will fix things, since i haven't identified the problem. Why do you do |
Hmmmmm... maybe thats the problem. I notice when the I will try this tonight. Thanks sir! |
Now I not understand... why
|
http://nbubna.github.io/HTML/#each(property) That's the API. It's for getting properties from multiple items at once. If you have a single item and want a single value, you just use the property: |
Still no work, and just in one location and for one table. Thats my case: 1 - I fill the form 2 - I press the button 3 - My script run and add a new line with blank text in all 4 - In the console I can see each value inputed in form correctly, but
The script still the same, but I change
I really don't know where is the problem. |
I convert my code to DOMx but get the following error (I'll post that in DOMx repository too).
I get this error when I try to do that:
|
I think I found something. When I execute in Google Chrome console this code:
I get undefined. So I wait 2 seconds and execute the same code... and I get the table. Why that delay? |
I figure out something:
So I try to append this new Maybe the problem was that... how to use your lib manipulating each element separately and then join all together? Sorry for my incredible english. |
This would be sooo much easier with a working example. |
The first post is a complete working example. Anyway, I will try solve that. Thanks for your time sir. |
The markup for the first post is embedded in some unspecified template language. It may be a working example for you. It is not for me. I would like to help you, but i have an incomplete picture of what is happening and limited time to spend combing through a large section of code. |
No problem my friend, I understand your point. I will try write and functional* example for you tonight. Thanks anyway. |
Hi.
I will try explain my problem, but please, forgive my terrible english.
First case
Second case (error)
What I test?
I put some
console.log/debug
in my code and I notice when I get thetablet
element, I get undefined instead ofHTML object
lib.My code
HTML
Javascript
If you need more informations, tell me please.
The text was updated successfully, but these errors were encountered: