Im having some problems with this.
Ive got this code
const QString scriptWithPlaceHolders
= "test();null";
((std::pair<QWebView*, std::string>)publicWindows.at(0)).first->page()->mainFrame()->evaluateJavaScript(scriptWithPlaceHolders);
const QString scriptWithPlaceHolders = "test();null";
((std::pair<QWebView*, std::string>)publicWindows.at(0)).first->page()->mainFrame()->evaluateJavaScript(scriptWithPlaceHolders);
To copy to clipboard, switch view to plain text mode
over this javascript
function test(){
document.getElementById("title").innerHTML = ":(";
}
function test(){
document.getElementById("title").innerHTML = ":(";
}
To copy to clipboard, switch view to plain text mode
And everything seems fine, but if i try:
const QString scriptWithPlaceHolders
= "test(%1);null";
((std::pair<QWebView*, std::string>)publicWindows.at(0)).first->page()->mainFrame()->evaluateJavaScript(scriptWithPlaceHolders.arg(":("));
const QString scriptWithPlaceHolders = "test(%1);null";
((std::pair<QWebView*, std::string>)publicWindows.at(0)).first->page()->mainFrame()->evaluateJavaScript(scriptWithPlaceHolders.arg(":("));
To copy to clipboard, switch view to plain text mode
over
function test(purq){
document.getElementById("title").innerHTML = ":(";
}
function test(purq){
document.getElementById("title").innerHTML = ":(";
}
To copy to clipboard, switch view to plain text mode
it does not work, any idea on what can be wrong?
Bookmarks