Форум программистов, компьютерный форум, киберфорум
jQuery
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.91/11: Рейтинг темы: голосов - 11, средняя оценка - 4.91
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
1

Доступ ко внешней функции из плагина

21.01.2014, 17:07. Показов 2251. Ответов 18
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Есть такой плагин:
Javascript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(function($){            
    
    var x = null;
    
    $.Plugin = {
        init : function() {     
          $this=this;
          //.. more actions
        },
        
        foo : function(arg){                                 
            var z =null;
            
            $.post(url,vars,function(data){
                
            });
        }
        
    };
    
})(jQuery);
он загружается вместе с формой на страницу посредством ajax запроса с основной страницы, т.е.

на странице есть уже ф-я:

Javascript
1
2
3
AlertMsg(str){
  alert(str);
}
под этим кодом есть div, в который подгружается выше описанный плагин, проблема заключается в том, что ф-я AlertMsg() объявленная в шапке доступна в плагине только в методе init(), а внутри foo() - она уже почему то не работает, нужно сделать так чтобы AlertMsg() работала внутри метода foo() на этом участке:
Javascript
1
2
3
$.post(url,vars,function(data){
    AlertMsg("string");
});
Как это сделать и почему у меня возникла такая проблема? почему в init - работает, а в foo - не работает?
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
21.01.2014, 17:07
Ответы с готовыми решениями:

CS0120 Получить доступ к внешней функции из класса
Хочу получить доступ к переменной Variable из класса, но он не хочет, на строчке с инкрементом...

Плагины. Доступ из плагина к классам приложения
Доброго времени суток. Есть готовое рабочее приложение, появилось желание добавить расширяемость...

Доступ к компонентам внешней программы
Всем привет, мне надо обратиться к внешней программе(это я умею) и добраться в нем к компоненту...

Как можно упростить доступ к функциям внутри плагина
Допустим есть плагин: (function($){ //управение каталогом товаров var abc = $("#id"); ...

18
268 / 268 / 109
Регистрация: 22.08.2013
Сообщений: 907
21.01.2014, 19:22 2
Sanu0074, а какая-нибудь ошибка выскакивает в консоли?
0
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
21.01.2014, 19:24  [ТС] 3
Razip, консоль молчит
0
268 / 268 / 109
Регистрация: 22.08.2013
Сообщений: 907
21.01.2014, 19:28 4
Sanu0074, можно ссылку?

Добавлено через 1 минуту
Кстати. А почему Вы думаете что в foo не доступна функция? Вы вызывали же её в примере из функции обратного вызова метода $.post().

Добавлено через 38 секунд
Попробуйте вызывать из foo. Если там не заработает — то копаем в другую сторону.
0
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
21.01.2014, 19:30  [ТС] 5
Razip, locahost...

проблему описал в деталях же)

Добавлено через 1 минуту
Цитата Сообщение от Razip Посмотреть сообщение
Добавлено через 1 минуту
Кстати. А почему Вы думаете что в foo не доступна функция? Вы вызывали же её в примере из функции обратного вызова метода $.post().
Добавлено через 38 секунд
Попробуйте вызывать из foo. Если там не заработает — то копаем в другую сторону.
Вы внимательно прочитали тему?
По вашему, на этой части:
Javascript
1
2
3
$.post(url,vars,function(data){
    AlertMsg("string");
});
Вызов откуда?
0
268 / 268 / 109
Регистрация: 22.08.2013
Сообщений: 907
21.01.2014, 19:32 6
Sanu0074, функция обратного вызова запускается из метода jQuery. А я Вам говорю о:

Javascript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(function($){            
    
    var x = null;
    
    $.Plugin = {
        init : function() {     
          $this=this;
          //.. more actions
        },
        
        foo : function(arg){                                 
            var z =null;
 
            /*
            Сюда вставьте вызов
            */
            
            $.post(url,vars,function(data){
                
            });
        }
        
    };
    
})(jQuery);
0
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
21.01.2014, 19:36  [ТС] 7
Цитата Сообщение от Razip Посмотреть сообщение
Javascript
1
2
3
4
5
6
7
foo : function(arg){ * * * * * * * * * * * * * * * * 
* * * * * * var z =null;
/*
* * * * * * Сюда вставьте вызов
* * * * * * */
$.post(url,vars,function(data){
});
Я так делал результат тот же, и пишу что вообще из foo недоступна...
Меня удивляет то что в init она работает а в foo - нет
0
268 / 268 / 109
Регистрация: 22.08.2013
Сообщений: 907
21.01.2014, 19:39 8
Sanu0074, ну тогда гуглить как устроены jQuery плагины. Можете посмотреть какие namespace'ы в этих методах.

Добавлено через 34 секунды
Я не сталкивался с созданием плагина, однако интересно в чем дело здесь.
1
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
21.01.2014, 19:41  [ТС] 9
Razip, та гуглил уже много чего, ошибка очень странная
0
268 / 268 / 109
Регистрация: 22.08.2013
Сообщений: 907
21.01.2014, 19:42 10
Sanu0074, а область видимости какая в обоих методах?
Javascript
1
console.log(this);
0
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
21.01.2014, 19:46  [ТС] 11
Цитата Сообщение от Razip Посмотреть сообщение
а область видимости какая в обоих методах?
а где это смотреть? в консоли перечислен список методов....

p.s. с консолью не дружу..
0
268 / 268 / 109
Регистрация: 22.08.2013
Сообщений: 907
21.01.2014, 20:06 12
Можно скриншот консоли? Желательно из FireFox.

Добавлено через 13 минут
Завтра гляну, оставите скриншот. Также можете сделать заместо console.log() — alert(). И скопируйте сюда. Это менее информативно но все же.

Добавлено через 15 секунд
Скопируйте все что выводите этими функциями.

Добавлено через 14 секунд
Я про this.
0
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
22.01.2014, 01:23  [ТС] 13
Razip, вот кусок консоли с хрома:
Код
Object {init: function, addProduct: function, getDiscountPercent: function, checkProductInCashMemo: function, wndChoseTypeTrade: function…}
addProduct: function (imei){
arguments: null
caller: null
length: 1
name: ""
prototype: Object
constructor: function (imei){
arguments: null
caller: null
length: 1
name: ""
prototype: Object
constructor: function (imei){
arguments: null
caller: null
length: 1
name: ""
prototype: Object
constructor: function (imei){
arguments: null
caller: null
length: 1
name: ""
prototype: Object
constructor: function (imei){
arguments: null
caller: null
length: 1
name: ""
prototype: Object
constructor: function (imei){
__proto__: Object
__defineGetter__: function __defineGetter__() { [native code] }
arguments: null
caller: null
length: 2
name: "__defineGetter__"
__proto__: function Empty() {}
apply: function apply() { [native code] }
arguments: null
bind: function bind() { [native code] }
call: function call() { [native code] }
caller: null
constructor: function Function() { [native code] }
length: 0
name: "Empty"
toString: function toString() { [native code] }
__proto__: Object
<function scope>
Global: Window
Infinity: Infinity
$: function (e,n){return new x.fn.init(e,n,t)}
$this: Object
AlertMessage: function AlertMessage(text,title){	 //всплывающее сообщение
AnalyserNode: function AnalyserNode() { [native code] }
ApplicationCache: function ApplicationCache() { [native code] }
Array: function Array() { [native code] }
ArrayBuffer: function ArrayBuffer() { [native code] }
Attr: function Attr() { [native code] }
Audio: function HTMLAudioElement() { [native code] }
AudioBuffer: function AudioBuffer() { [native code] }
AudioBufferSourceNode: function AudioBufferSourceNode() { [native code] }
AudioDestinationNode: function AudioDestinationNode() { [native code] }
AudioListener: function AudioListener() { [native code] }
AudioNode: function AudioNode() { [native code] }
AudioParam: function AudioParam() { [native code] }
AudioProcessingEvent: function AudioProcessingEvent() { [native code] }
AutocompleteErrorEvent: function AutocompleteErrorEvent() { [native code] }
BarProp: function BarProp() { [native code] }
BeforeLoadEvent: function BeforeLoadEvent() { [native code] }
BeforeUnloadEvent: function BeforeUnloadEvent() { [native code] }
BiquadFilterNode: function BiquadFilterNode() { [native code] }
Blob: function Blob() { [native code] }
Boolean: function Boolean() { [native code] }
CDATASection: function CDATASection() { [native code] }
COUNT_DNN: 100
COUNT_ELEMENTS: ".elemeints-in-section span"
CSS: CSS
CSSCharsetRule: function CSSCharsetRule() { [native code] }
CSSFontFaceRule: function CSSFontFaceRule() { [native code] }
CSSHostRule: function CSSHostRule() { [native code] }
CSSImportRule: function CSSImportRule() { [native code] }
CSSKeyframeRule: function CSSKeyframeRule() { [native code] }
CSSKeyframesRule: function CSSKeyframesRule() { [native code] }
CSSMediaRule: function CSSMediaRule() { [native code] }
CSSPageRule: function CSSPageRule() { [native code] }
CSSPrimitiveValue: function CSSPrimitiveValue() { [native code] }
CSSRule: function CSSRule() { [native code] }
CSSRuleList: function CSSRuleList() { [native code] }
CSSStyleDeclaration: function CSSStyleDeclaration() { [native code] }
CSSStyleRule: function CSSStyleRule() { [native code] }
CSSStyleSheet: function CSSStyleSheet() { [native code] }
CSSValue: function CSSValue() { [native code] }
CSSValueList: function CSSValueList() { [native code] }
CSSVariablesMap: function CSSVariablesMap() { [native code] }
CSSViewportRule: function CSSViewportRule() { [native code] }
CanvasGradient: function CanvasGradient() { [native code] }
CanvasPattern: function CanvasPattern() { [native code] }
CanvasRenderingContext2D: function CanvasRenderingContext2D() { [native code] }
ChannelMergerNode: function ChannelMergerNode() { [native code] }
ChannelSplitterNode: function ChannelSplitterNode() { [native code] }
CharacterData: function CharacterData() { [native code] }
ClientRect: function ClientRect() { [native code] }
ClientRectList: function ClientRectList() { [native code] }
Clipboard: function Clipboard() { [native code] }
CloseEvent: function CloseEvent() { [native code] }
Comment: function Comment() { [native code] }
CompositionEvent: function CompositionEvent() { [native code] }
ConvolverNode: function ConvolverNode() { [native code] }
Counter: function Counter() { [native code] }
CustomEvent: function CustomEvent() { [native code] }
DISPLAY_NOTES: "input[name='display']"
DOC: "html, body"
DOMException: function DOMException() { [native code] }
DOMImplementation: function DOMImplementation() { [native code] }
DOMParser: function DOMParser() { [native code] }
DOMSettableTokenList: function DOMSettableTokenList() { [native code] }
DOMStringList: function DOMStringList() { [native code] }
DOMStringMap: function DOMStringMap() { [native code] }
DOMTokenList: function DOMTokenList() { [native code] }
DataTransferItemList: function DataTransferItemList() { [native code] }
DataView: function DataView() { [native code] }
Date: function Date() { [native code] }
DelayNode: function DelayNode() { [native code] }
DeviceMotionEvent: function DeviceMotionEvent() { [native code] }
DeviceOrientationEvent: function DeviceOrientationEvent() { [native code] }
Document: function Document() { [native code] }
DocumentFragment: function DocumentFragment() { [native code] }
DocumentType: function DocumentType() { [native code] }
DynamicsCompressorNode: function DynamicsCompressorNode() { [native code] }
Element: function Element() { [native code] }
Entity: function Entity() { [native code] }
Error: function Error() { [native code] }
ErrorEvent: function ErrorEvent() { [native code] }
EvalError: function EvalError() { [native code] }
Event: function Event() { [native code] }
EventSource: function EventSource() { [native code] }
EventTarget: function EventTarget() { [native code] }
File: function File() { [native code] }
FileError: function FileError() { [native code] }
FileList: function FileList() { [native code] }
FileReader: function FileReader() { [native code] }
Float32Array: function Float32Array() { [native code] }
Float64Array: function Float64Array() { [native code] }
FocusEvent: function FocusEvent() { [native code] }
FormData: function FormData() { [native code] }
Function: function Function() { [native code] }
GARBAGE: ".LOADER, .f, .t, .n"
GainNode: function GainNode() { [native code] }
GetWSpaceCount: function GetWSpaceCount(ctx,listItem){	 //ctx=ссылка на область куда вставлять, listItem=сам элемент ед.
HOST: "http://188.190.223.225/"
HTMLAllCollection: function HTMLAllCollection() { [native code] }
HTMLAnchorElement: function HTMLAnchorElement() { [native code] }
HTMLAppletElement: function HTMLAppletElement() { [native code] }
HTMLAreaElement: function HTMLAreaElement() { [native code] }
HTMLAudioElement: function HTMLAudioElement() { [native code] }
HTMLBRElement: function HTMLBRElement() { [native code] }
HTMLBaseElement: function HTMLBaseElement() { [native code] }
HTMLBodyElement: function HTMLBodyElement() { [native code] }
HTMLButtonElement: function HTMLButtonElement() { [native code] }
HTMLCanvasElement: function HTMLCanvasElement() { [native code] }
HTMLCollection: function HTMLCollection() { [native code] }
HTMLContentElement: function HTMLContentElement() { [native code] }
HTMLDListElement: function HTMLDListElement() { [native code] }
HTMLDataListElement: function HTMLDataListElement() { [native code] }
HTMLDirectoryElement: function HTMLDirectoryElement() { [native code] }
HTMLDivElement: function HTMLDivElement() { [native code] }
HTMLDocument: function HTMLDocument() { [native code] }
HTMLElement: function HTMLElement() { [native code] }
HTMLEmbedElement: function HTMLEmbedElement() { [native code] }
HTMLFieldSetElement: function HTMLFieldSetElement() { [native code] }
HTMLFontElement: function HTMLFontElement() { [native code] }
HTMLFormControlsCollection: function HTMLFormControlsCollection() { [native code] }
HTMLFormElement: function HTMLFormElement() { [native code] }
HTMLFrameElement: function HTMLFrameElement() { [native code] }
HTMLFrameSetElement: function HTMLFrameSetElement() { [native code] }
HTMLHRElement: function HTMLHRElement() { [native code] }
HTMLHeadElement: function HTMLHeadElement() { [native code] }
HTMLHeadingElement: function HTMLHeadingElement() { [native code] }
HTMLHtmlElement: function HTMLHtmlElement() { [native code] }
HTMLIFrameElement: function HTMLIFrameElement() { [native code] }
HTMLImageElement: function HTMLImageElement() { [native code] }
HTMLInputElement: function HTMLInputElement() { [native code] }
HTMLKeygenElement: function HTMLKeygenElement() { [native code] }
HTMLLIElement: function HTMLLIElement() { [native code] }
HTMLLabelElement: function HTMLLabelElement() { [native code] }
HTMLLegendElement: function HTMLLegendElement() { [native code] }
HTMLLinkElement: function HTMLLinkElement() { [native code] }
HTMLMapElement: function HTMLMapElement() { [native code] }
HTMLMarqueeElement: function HTMLMarqueeElement() { [native code] }
HTMLMediaElement: function HTMLMediaElement() { [native code] }
HTMLMenuElement: function HTMLMenuElement() { [native code] }
HTMLMetaElement: function HTMLMetaElement() { [native code] }
HTMLMeterElement: function HTMLMeterElement() { [native code] }
HTMLModElement: function HTMLModElement() { [native code] }
HTMLOListElement: function HTMLOListElement() { [native code] }
HTMLObjectElement: function HTMLObjectElement() { [native code] }
HTMLOptGroupElement: function HTMLOptGroupElement() { [native code] }
HTMLOptionElement: function HTMLOptionElement() { [native code] }
HTMLOptionsCollection: function HTMLOptionsCollection() { [native code] }
HTMLOutputElement: function HTMLOutputElement() { [native code] }
HTMLParagraphElement: function HTMLParagraphElement() { [native code] }
HTMLParamElement: function HTMLParamElement() { [native code] }
HTMLPreElement: function HTMLPreElement() { [native code] }
HTMLProgressElement: function HTMLProgressElement() { [native code] }
HTMLQuoteElement: function HTMLQuoteElement() { [native code] }
HTMLScriptElement: function HTMLScriptElement() { [native code] }
HTMLSelectElement: function HTMLSelectElement() { [native code] }
HTMLShadowElement: function HTMLShadowElement() { [native code] }
HTMLSourceElement: function HTMLSourceElement() { [native code] }
HTMLSpanElement: function HTMLSpanElement() { [native code] }
HTMLStyleElement: function HTMLStyleElement() { [native code] }
HTMLTableCaptionElement: function HTMLTableCaptionElement() { [native code] }
HTMLTableCellElement: function HTMLTableCellElement() { [native code] }
HTMLTableColElement: function HTMLTableColElement() { [native code] }
HTMLTableElement: function HTMLTableElement() { [native code] }
HTMLTableRowElement: function HTMLTableRowElement() { [native code] }
HTMLTableSectionElement: function HTMLTableSectionElement() { [native code] }
HTMLTemplateElement: function HTMLTemplateElement() { [native code] }
HTMLTextAreaElement: function HTMLTextAreaElement() { [native code] }
HTMLTitleElement: function HTMLTitleElement() { [native code] }
HTMLTrackElement: function HTMLTrackElement() { [native code] }
HTMLUListElement: function HTMLUListElement() { [native code] }
HTMLUnknownElement: function HTMLUnknownElement() { [native code] }
HTMLVideoElement: function HTMLVideoElement() { [native code] }
HashChangeEvent: function HashChangeEvent() { [native code] }
History: function History() { [native code] }
IDBCursor: function IDBCursor() { [native code] }
IDBCursorWithValue: function IDBCursorWithValue() { [native code] }
IDBDatabase: function IDBDatabase() { [native code] }
IDBFactory: function IDBFactory() { [native code] }
IDBIndex: function IDBIndex() { [native code] }
IDBKeyRange: function IDBKeyRange() { [native code] }
IDBObjectStore: function IDBObjectStore() { [native code] }
IDBOpenDBRequest: function IDBOpenDBRequest() { [native code] }
IDBRequest: function IDBRequest() { [native code] }
IDBTransaction: function IDBTransaction() { [native code] }
IDBVersionChangeEvent: function IDBVersionChangeEvent() { [native code] }
INSTR_BLOCK: ".instruments"
Image: function HTMLImageElement() { [native code] }
ImageBitmap: function ImageBitmap() { [native code] }
ImageData: function ImageData() { [native code] }
InputMethodContext: function InputMethodContext() { [native code] }
Int8Array: function Int8Array() { [native code] }
Int16Array: function Int16Array() { [native code] }
Int32Array: function Int32Array() { [native code] }
Intl: Object
JSON: JSON
KeyboardEvent: function KeyboardEvent() { [native code] }
LIST_ITEM: ".table-list tr:not(:first)"
LOADER: "<div class="LOADER"></div>"
Location: function Location() { [native code] }
Math: MathConstructor
MediaController: function MediaController() { [native code] }
MediaElementAudioSourceNode: function MediaElementAudioSourceNode() { [native code] }
MediaError: function MediaError() { [native code] }
MediaKeyError: function MediaKeyError() { [native code] }
MediaKeyEvent: function MediaKeyEvent() { [native code] }
MediaList: function MediaList() { [native code] }
MediaSource: function MediaSource() { [native code] }
MediaStreamAudioDestinationNode: function MediaStreamAudioDestinationNode() { [native code] }
MediaStreamAudioSourceNode: function MediaStreamAudioSourceNode() { [native code] }
MediaStreamEvent: function MediaStreamEvent() { [native code] }
MediaStreamTrack: function MediaStreamTrack() { [native code] }
MessageChannel: function MessageChannel() { [native code] }
MessageEvent: function MessageEvent() { [native code] }
MessagePort: function MessagePort() { [native code] }
MimeType: function MimeType() { [native code] }
MimeTypeArray: function MimeTypeArray() { [native code] }
MouseEvent: function MouseEvent() { [native code] }
MutationEvent: function MutationEvent() { [native code] }
MutationObserver: function MutationObserver() { [native code] }
MutationRecord: function MutationRecord() { [native code] }
NAVIGATOR: "select[name='navigator']"
NaN: NaN
NamedNodeMap: function NamedNodeMap() { [native code] }
Navigator: function Navigator() { [native code] }
Node: function Node() { [native code] }
NodeFilter: function NodeFilter() { [native code] }
NodeIterator: function NodeIterator() { [native code] }
NodeList: function NodeList() { [native code] }
Notation: function Notation() { [native code] }
Notification: function Notification() { [native code] }
Number: function Number() { [native code] }
OVERLAY: ".overlay"
Object: function Object() { [native code] }
OfflineAudioCompletionEvent: function OfflineAudioCompletionEvent() { [native code] }
Option: function HTMLOptionElement() { [native code] }
OscillatorNode: function OscillatorNode() { [native code] }
OverflowEvent: function OverflowEvent() { [native code] }
PageTransitionEvent: function PageTransitionEvent() { [native code] }
ParseGetParams: function ParseGetParams() { //получает GET данные
Performance: function Performance() { [native code] }
PerformanceEntry: function PerformanceEntry() { [native code] }
PerformanceMark: function PerformanceMark() { [native code] }
PerformanceMeasure: function PerformanceMeasure() { [native code] }
PerformanceNavigation: function PerformanceNavigation() { [native code] }
PerformanceResourceTiming: function PerformanceResourceTiming() { [native code] }
PerformanceTiming: function PerformanceTiming() { [native code] }
PeriodicWave: function PeriodicWave() { [native code] }
Plugin: function Plugin() { [native code] }
PluginArray: function PluginArray() { [native code] }
PopStateEvent: function PopStateEvent() { [native code] }
ProcessingInstruction: function ProcessingInstruction() { [native code] }
ProgressEvent: function ProgressEvent() { [native code] }
Promise: function Promise() { [native code] }
RGBColor: function RGBColor() { [native code] }
RTCIceCandidate: function RTCIceCandidate() { [native code] }
RTCSessionDescription: function RTCSessionDescription() { [native code] }
Range: function Range() { [native code] }
RangeError: function RangeError() { [native code] }
Rect: function Rect() { [native code] }
ReferenceError: function ReferenceError() { [native code] }
RegExp: function RegExp() { [native code] }
RemoveAnimL: function RemoveAnimL(){	 //удаление анимаций
RemoveAnimW: function RemoveAnimW(){
START_NOTE: "input[name='start']"
SVGAElement: function SVGAElement() { [native code] }
SVGAltGlyphDefElement: function SVGAltGlyphDefElement() { [native code] }
SVGAltGlyphElement: function SVGAltGlyphElement() { [native code] }
SVGAltGlyphItemElement: function SVGAltGlyphItemElement() { [native code] }
SVGAngle: function SVGAngle() { [native code] }
SVGAnimateColorElement: function SVGAnimateColorElement() { [native code] }
SVGAnimateElement: function SVGAnimateElement() { [native code] }
SVGAnimateMotionElement: function SVGAnimateMotionElement() { [native code] }
SVGAnimateTransformElement: function SVGAnimateTransformElement() { [native code] }
SVGAnimatedAngle: function SVGAnimatedAngle() { [native code] }
SVGAnimatedBoolean: function SVGAnimatedBoolean() { [native code] }
SVGAnimatedEnumeration: function SVGAnimatedEnumeration() { [native code] }
SVGAnimatedInteger: function SVGAnimatedInteger() { [native code] }
SVGAnimatedLength: function SVGAnimatedLength() { [native code] }
SVGAnimatedLengthList: function SVGAnimatedLengthList() { [native code] }
SVGAnimatedNumber: function SVGAnimatedNumber() { [native code] }
SVGAnimatedNumberList: function SVGAnimatedNumberList() { [native code] }
SVGAnimatedPreserveAspectRatio: function SVGAnimatedPreserveAspectRatio() { [native code] }
SVGAnimatedRect: function SVGAnimatedRect() { [native code] }
SVGAnimatedString: function SVGAnimatedString() { [native code] }
SVGAnimatedTransformList: function SVGAnimatedTransformList() { [native code] }
SVGAnimationElement: function SVGAnimationElement() { [native code] }
SVGCircleElement: function SVGCircleElement() { [native code] }
SVGClipPathElement: function SVGClipPathElement() { [native code] }
SVGColor: function SVGColor() { [native code] }
SVGComponentTransferFunctionElement: function SVGComponentTransferFunctionElement() { [native code] }
SVGCursorElement: function SVGCursorElement() { [native code] }
SVGDefsElement: function SVGDefsElement() { [native code] }
SVGDescElement: function SVGDescElement() { [native code] }
SVGDocument: function SVGDocument() { [native code] }
SVGElement: function SVGElement() { [native code] }
SVGElementInstance: function SVGElementInstance() { [native code] }
SVGElementInstanceList: function SVGElementInstanceList() { [native code] }
SVGEllipseElement: function SVGEllipseElement() { [native code] }
SVGFEBlendElement: function SVGFEBlendElement() { [native code] }
SVGFEColorMatrixElement: function SVGFEColorMatrixElement() { [native code] }
SVGFEComponentTransferElement: function SVGFEComponentTransferElement() { [native code] }
SVGFECompositeElement: function SVGFECompositeElement() { [native code] }
SVGFEConvolveMatrixElement: function SVGFEConvolveMatrixElement() { [native code] }
SVGFEDiffuseLightingElement: function SVGFEDiffuseLightingElement() { [native code] }
SVGFEDisplacementMapElement: function SVGFEDisplacementMapElement() { [native code] }
SVGFEDistantLightElement: function SVGFEDistantLightElement() { [native code] }
SVGFEDropShadowElement: function SVGFEDropShadowElement() { [native code] }
SVGFEFloodElement: function SVGFEFloodElement() { [native code] }
SVGFEFuncAElement: function SVGFEFuncAElement() { [native code] }
SVGFEFuncBElement: function SVGFEFuncBElement() { [native code] }
SVGFEFuncGElement: function SVGFEFuncGElement() { [native code] }
SVGFEFuncRElement: function SVGFEFuncRElement() { [native code] }
SVGFEGaussianBlurElement: function SVGFEGaussianBlurElement() { [native code] }
SVGFEImageElement: function SVGFEImageElement() { [native code] }
SVGFEMergeElement: function SVGFEMergeElement() { [native code] }
SVGFEMergeNodeElement: function SVGFEMergeNodeElement() { [native code] }
SVGFEMorphologyElement: function SVGFEMorphologyElement() { [native code] }
SVGFEOffsetElement: function SVGFEOffsetElement() { [native code] }
SVGFEPointLightElement: function SVGFEPointLightElement() { [native code] }
SVGFESpecularLightingElement: function SVGFESpecularLightingElement() { [native code] }
SVGFESpotLightElement: function SVGFESpotLightElement() { [native code] }
SVGFETileElement: function SVGFETileElement() { [native code] }
SVGFETurbulenceElement: function SVGFETurbulenceElement() { [native code] }
SVGFilterElement: function SVGFilterElement() { [native code] }
SVGFontElement: function SVGFontElement() { [native code] }
SVGFontFaceElement: function SVGFontFaceElement() { [native code] }
SVGFontFaceFormatElement: function SVGFontFaceFormatElement() { [native code] }
SVGFontFaceNameElement: function SVGFontFaceNameElement() { [native code] }
SVGFontFaceSrcElement: function SVGFontFaceSrcElement() { [native code] }
SVGFontFaceUriElement: function SVGFontFaceUriElement() { [native code] }
SVGForeignObjectElement: function SVGForeignObjectElement() { [native code] }
SVGGElement: function SVGGElement() { [native code] }
SVGGlyphElement: function SVGGlyphElement() { [native code] }
SVGGlyphRefElement: function SVGGlyphRefElement() { [native code] }
SVGGradientElement: function SVGGradientElement() { [native code] }
SVGGraphicsElement: function SVGGraphicsElement() { [native code] }
SVGHKernElement: function SVGHKernElement() { [native code] }
SVGImageElement: function SVGImageElement() { [native code] }
SVGLength: function SVGLength() { [native code] }
SVGLengthList: function SVGLengthList() { [native code] }
SVGLineElement: function SVGLineElement() { [native code] }
SVGLinearGradientElement: function SVGLinearGradientElement() { [native code] }
SVGMPathElement: function SVGMPathElement() { [native code] }
SVGMarkerElement: function SVGMarkerElement() { [native code] }
SVGMaskElement: function SVGMaskElement() { [native code] }
SVGMatrix: function SVGMatrix() { [native code] }
SVGMetadataElement: function SVGMetadataElement() { [native code] }
SVGMissingGlyphElement: function SVGMissingGlyphElement() { [native code] }
SVGNumber: function SVGNumber() { [native code] }
SVGNumberList: function SVGNumberList() { [native code] }
SVGPaint: function SVGPaint() { [native code] }
SVGPathElement: function SVGPathElement() { [native code] }
SVGPathSeg: function SVGPathSeg() { [native code] }
SVGPathSegArcAbs: function SVGPathSegArcAbs() { [native code] }
SVGPathSegArcRel: function SVGPathSegArcRel() { [native code] }
SVGPathSegClosePath: function SVGPathSegClosePath() { [native code] }
SVGPathSegCurvetoCubicAbs: function SVGPathSegCurvetoCubicAbs() { [native code] }
SVGPathSegCurvetoCubicRel: function SVGPathSegCurvetoCubicRel() { [native code] }
SVGPathSegCurvetoCubicSmoothAbs: function SVGPathSegCurvetoCubicSmoothAbs() { [native code] }
SVGPathSegCurvetoCubicSmoothRel: function SVGPathSegCurvetoCubicSmoothRel() { [native code] }
SVGPathSegCurvetoQuadraticAbs: function SVGPathSegCurvetoQuadraticAbs() { [native code] }
SVGPathSegCurvetoQuadraticRel: function SVGPathSegCurvetoQuadraticRel() { [native code] }
SVGPathSegCurvetoQuadraticSmoothAbs: function SVGPathSegCurvetoQuadraticSmoothAbs() { [native code] }
SVGPathSegCurvetoQuadraticSmoothRel: function SVGPathSegCurvetoQuadraticSmoothRel() { [native code] }
SVGPathSegLinetoAbs: function SVGPathSegLinetoAbs() { [native code] }
SVGPathSegLinetoHorizontalAbs: function SVGPathSegLinetoHorizontalAbs() { [native code] }
SVGPathSegLinetoHorizontalRel: function SVGPathSegLinetoHorizontalRel() { [native code] }
SVGPathSegLinetoRel: function SVGPathSegLinetoRel() { [native code] }
SVGPathSegLinetoVerticalAbs: function SVGPathSegLinetoVerticalAbs() { [native code] }
SVGPathSegLinetoVerticalRel: function SVGPathSegLinetoVerticalRel() { [native code] }
SVGPathSegList: function SVGPathSegList() { [native code] }
SVGPathSegMovetoAbs: function SVGPathSegMovetoAbs() { [native code] }
SVGPathSegMovetoRel: function SVGPathSegMovetoRel() { [native code] }
SVGPatternElement: function SVGPatternElement() { [native code] }
SVGPoint: function SVGPoint() { [native code] }
SVGPointList: function SVGPointList() { [native code] }
SVGPolygonElement: function SVGPolygonElement() { [native code] }
SVGPolylineElement: function SVGPolylineElement() { [native code] }
SVGPreserveAspectRatio: function SVGPreserveAspectRatio() { [native code] }
SVGRadialGradientElement: function SVGRadialGradientElement() { [native code] }
SVGRect: function SVGRect() { [native code] }
SVGRectElement: function SVGRectElement() { [native code] }
SVGRenderingIntent: function SVGRenderingIntent() { [native code] }
SVGSVGElement: function SVGSVGElement() { [native code] }
SVGScriptElement: function SVGScriptElement() { [native code] }
SVGSetElement: function SVGSetElement() { [native code] }
SVGStopElement: function SVGStopElement() { [native code] }
SVGStringList: function SVGStringList() { [native code] }
SVGStyleElement: function SVGStyleElement() { [native code] }
SVGSwitchElement: function SVGSwitchElement() { [native code] }
SVGSymbolElement: function SVGSymbolElement() { [native code] }
SVGTSpanElement: function SVGTSpanElement() { [native code] }
SVGTextContentElement: function SVGTextContentElement() { [native code] }
SVGTextElement: function SVGTextElement() { [native code] }
SVGTextPathElement: function SVGTextPathElement() { [native code] }
SVGTextPositioningElement: function SVGTextPositioningElement() { [native code] }
SVGTitleElement: function SVGTitleElement() { [native code] }
SVGTransform: function SVGTransform() { [native code] }
SVGTransformList: function SVGTransformList() { [native code] }
SVGUnitTypes: function SVGUnitTypes() { [native code] }
SVGUseElement: function SVGUseElement() { [native code] }
SVGVKernElement: function SVGVKernElement() { [native code] }
SVGViewElement: function SVGViewElement() { [native code] }
SVGViewSpec: function SVGViewSpec() { [native code] }
SVGZoomEvent: function SVGZoomEvent() { [native code] }
Screen: function Screen() { [native code] }
ScriptProcessorNode: function ScriptProcessorNode() { [native code] }
SecurityPolicy: function SecurityPolicy() { [native code] }
Selection: function Selection() { [native code] }
SharedWorker: function SharedWorker() { [native code] }
SpeechInputEvent: function SpeechInputEvent() { [native code] }
Storage: function Storage() { [native code] }
StorageEvent: function StorageEvent() { [native code] }
String: function String() { [native code] }
StyleSheet: function StyleSheet() { [native code] }
StyleSheetList: function StyleSheetList() { [native code] }
SyntaxError: function SyntaxError() { [native code] }
Text: function Text() { [native code] }
TextEvent: function TextEvent() { [native code] }
TextMetrics: function TextMetrics() { [native code] }
TextTrack: function TextTrack() { [native code] }
TextTrackCue: function TextTrackCue() { [native code] }
TextTrackCueList: function TextTrackCueList() { [native code] }
TextTrackList: function TextTrackList() { [native code] }
TimeRanges: function TimeRanges() { [native code] }
Touch: function Touch() { [native code] }
TouchEvent: function TouchEvent() { [native code] }
TouchList: function TouchList() { [native code] }
TrackEvent: function TrackEvent() { [native code] }
TransitionEvent: function TransitionEvent() { [native code] }
TreeWalker: function TreeWalker() { [native code] }
TypeError: function TypeError() { [native code] }
UIEvent: function UIEvent() { [native code] }
URIError: function URIError() { [native code] }
URL: function URL() { [native code] }
Uint8Array: function Uint8Array() { [native code] }
Uint8ClampedArray: function Uint8ClampedArray() { [native code] }
Uint16Array: function Uint16Array() { [native code] }
Uint32Array: function Uint32Array() { [native code] }
ValidityState: function ValidityState() { [native code] }
WAIT_BLOCK: "#waitBlock"
WH_ID: 23
WORKER: "<div class="WORKER"></div>"
WORKSPACE: ".workspace"
WORKSPACE_ELEMENT: ".workspace-element"
WaveShaperNode: function WaveShaperNode() { [native code] }
WebGLActiveInfo: function WebGLActiveInfo() { [native code] }
WebGLBuffer: function WebGLBuffer() { [native code] }
WebGLContextEvent: function WebGLContextEvent() { [native code] }
WebGLFramebuffer: function WebGLFramebuffer() { [native code] }
WebGLProgram: function WebGLProgram() { [native code] }
WebGLRenderbuffer: function WebGLRenderbuffer() { [native code] }
WebGLRenderingContext: function WebGLRenderingContext() { [native code] }
WebGLShader: function WebGLShader() { [native code] }
WebGLShaderPrecisionFormat: function WebGLShaderPrecisionFormat() { [native code] }
WebGLTexture: function WebGLTexture() { [native code] }
WebGLUniformLocation: function WebGLUniformLocation() { [native code] }
WebKitAnimationEvent: function WebKitAnimationEvent() { [native code] }
WebKitCSSFilterRule: function WebKitCSSFilterRule() { [native code] }
WebKitCSSFilterValue: function WebKitCSSFilterValue() { [native code] }
WebKitCSSMatrix: function WebKitCSSMatrix() { [native code] }
WebKitCSSMixFunctionValue: function WebKitCSSMixFunctionValue() { [native code] }
WebKitCSSTransformValue: function WebKitCSSTransformValue() { [native code] }
WebKitMediaSource: function WebKitMediaSource() { [native code] }
WebKitMutationObserver: function MutationObserver() { [native code] }
WebKitPoint: function WebKitPoint() { [native code] }
WebKitShadowRoot: function ShadowRoot() { [native code] }
WebKitSourceBuffer: function WebKitSourceBuffer() { [native code] }
WebKitSourceBufferList: function WebKitSourceBufferList() { [native code] }
WebKitTransitionEvent: function TransitionEvent() { [native code] }
WebSocket: function WebSocket() { [native code] }
WheelEvent: function WheelEvent() { [native code] }
Window: function Window() { [native code] }
Worker: function Worker() { [native code] }
XMLDocument: function Document() { [native code] }
XMLHttpRequest: function XMLHttpRequest() { [native code] }
XMLHttpRequestProgressEvent: function XMLHttpRequestProgressEvent() { [native code] }
XMLHttpRequestUpload: function XMLHttpRequestUpload() { [native code] }
XMLSerializer: function XMLSerializer() { [native code] }
XPathEvaluator: function XPathEvaluator() { [native code] }
XPathExpression: function XPathExpression() { [native code] }
XPathResult: function XPathResult() { [native code] }
XSLTProcessor: function XSLTProcessor() { [native code] }
applicationCache: ApplicationCache
baseURL: "http://188.190.223.225/cp/"
chrome: Object
clientInformation: Navigator
closed: false
console: Console
crypto: Crypto
decodeURI: function decodeURI() { [native code] }
decodeURIComponent: function decodeURIComponent() { [native code] }
defaultStatus: ""
defaultstatus: ""
devicePixelRatio: 1
document: document
encodeURI: function encodeURI() { [native code] }
encodeURIComponent: function encodeURIComponent() { [native code] }
escape: function escape() { [native code] }
eval: function eval() { [native code] }
event: undefined
external: Object
frameElement: null
frames: Window
history: History
indexedDB: IDBFactory
innerHeight: 19
innerWidth: 1920
isFinite: function isFinite() { [native code] }
isNaN: function isNaN() { [native code] }
jQuery: function (e,n){return new x.fn.init(e,n,t)}
jQuery2030177401538938283920.6511782249435782: 8
length: 0
loadWorkRegion: function loadWorkRegion(){	 //загружает рабочуее пространство для редактирования элементов
localStorage: Storage
location: Location
locationbar: BarProp
m: Object
menubar: BarProp
name: ""
navigator: Navigator
offscreenBuffering: true
opener: null
outerHeight: 1040
outerWidth: 1920
pageXOffset: 0
pageYOffset: 0
parent: Window
parseFloat: function parseFloat() { [native code] }
parseInt: function parseInt() { [native code] }
performance: Performance
personalbar: BarProp
screen: Screen
screenLeft: 0
screenTop: 0
screenX: 0
screenY: 0
scrollX: 0
scrollY: 0
scrollbars: BarProp
self: Window
sessionStorage: Storage
status: ""
statusbar: BarProp
styleMedia: StyleMedia
td: Object
tinyMCE: Object
tinymce: Object
toolbar: BarProp
top: Window
undefined: undefined
unescape: function unescape() { [native code] }
webkitAudioContext: function AudioContext() { [native code] }
webkitAudioPannerNode: function PannerNode() { [native code] }
webkitIDBCursor: function IDBCursor() { [native code] }
webkitIDBDatabase: function IDBDatabase() { [native code] }
webkitIDBFactory: function IDBFactory() { [native code] }
webkitIDBIndex: function IDBIndex() { [native code] }
webkitIDBKeyRange: function IDBKeyRange() { [native code] }
webkitIDBObjectStore: function IDBObjectStore() { [native code] }
webkitIDBRequest: function IDBRequest() { [native code] }
webkitIDBTransaction: function IDBTransaction() { [native code] }
webkitIndexedDB: IDBFactory
webkitMediaStream: function MediaStream() { [native code] }
webkitNotifications: NotificationCenter
webkitOfflineAudioContext: function OfflineAudioContext() { [native code] }
webkitRTCPeerConnection: function RTCPeerConnection() { [native code] }
webkitSpeechGrammar: function SpeechGrammar() { [native code] }
webkitSpeechGrammarList: function SpeechGrammarList() { [native code] }
webkitSpeechRecognition: function SpeechRecognition() { [native code] }
webkitSpeechRecognitionError: function SpeechRecognitionError() { [native code] }
webkitSpeechRecognitionEvent: function SpeechRecognitionEvent() { [native code] }
webkitStorageInfo: StorageInfo
webkitURL: function URL() { [native code] }
window: Window
__proto__: Window
<function scope>
__defineSetter__: function __defineSetter__() { [native code] }
arguments: null
caller: null
length: 2
name: "__defineSetter__"
__proto__: function Empty() {}
<function scope>
__lookupGetter__: function __lookupGetter__() { [native code] }
__lookupSetter__: function __lookupSetter__() { [native code] }
constructor: function Object() { [native code] }
hasOwnProperty: function hasOwnProperty() { [native code] }
isPrototypeOf: function isPrototypeOf() { [native code] }
propertyIsEnumerable: function propertyIsEnumerable() { [native code] }
toLocaleString: function toLocaleString() { [native code] }
toString: function toString() { [native code] }
valueOf: function valueOf() { [native code] }
get __proto__: function __proto__() { [native code] }
set __proto__: function __proto__() { [native code] }
__proto__: function Empty() {}
<function scope>
__proto__: Object
__proto__: function Empty() {}
<function scope>
__proto__: Object
__proto__: function Empty() {}
<function scope>
__proto__: Object
__proto__: function Empty() {}
<function scope>
__proto__: Object
__proto__: function Empty() {}
<function scope>
firebug у меня ничего не выводит, не пользовался вообще ним никогда
Миниатюры
Доступ ко внешней функции из плагина  
0
tribal dance
168 / 156 / 36
Регистрация: 03.09.2009
Сообщений: 820
Записей в блоге: 17
22.01.2014, 02:14 14
Цитата Сообщение от Sanu0074 Посмотреть сообщение
$.post(url,vars,function(data){ AlertMsg("string"); });
Как вариант: post запрос не срабатывает.
0
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
22.01.2014, 02:37  [ТС] 15
Цитата Сообщение от EPMAK Посмотреть сообщение
Как вариант: post запрос не срабатывает.
невариант
0
636 / 523 / 195
Регистрация: 19.08.2013
Сообщений: 1,400
22.01.2014, 07:20 16
А если вызывать так?
Javascript
1
AlertMsg.call($this, "string"); //$this у вас в коде ссылается на контекст объекта-плагина в методе init
0
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
22.01.2014, 11:18  [ТС] 17
Цитата Сообщение от vovandr Посмотреть сообщение
А если вызывать так?
не, так тоже не работает...

Добавлено через 1 минуту
так же, убирал
Javascript
1
$this=this;
тот же результат...
0
268 / 268 / 109
Регистрация: 22.08.2013
Сообщений: 907
22.01.2014, 16:07 18
Sanu0074, ну дак а почему на скрине второй объект не развернули? Учитесь пользоваться хотя бы встроенными инструментами. В лисе Shift+F2, потом нажимаете на ключик — вот Вам консоль.
1
59 / 59 / 16
Регистрация: 14.06.2010
Сообщений: 1,190
Записей в блоге: 5
22.01.2014, 16:10  [ТС] 19
Решил проблему, не знаю даже в чем причина была...

всем спасибо за внимание
0
22.01.2014, 16:10
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
22.01.2014, 16:10
Помогаю со студенческими работами здесь

Router tl-wr841n доступ к интернету из внешней сети
Здравствуйте. Имеется роутер фирмыTP-link tl-wr841n и мне интересно можно ли настроить доступ к...

Не могу получить доступ из внешней сети. Интертелеком
Доброй ночи! Для сервера, раздающего очень малый объем TCP трафика нужно сделать возможность...

Доступ к объектной модели AutoCAD из внешней СИ-программы
Доступ к объектной модели AutoCAD из внешней СИ-программы Перенос темы в раздел АутоКАД - на...

HP iLO2 Как настроить доступ из внешней сети?
Собственно интересует следующее: Можно ли как-то подключится к интерфейсу iLO2 на сервере зайдя...

Получить доступ к внешней карте памяти (Android 6)
В предыдущей теме мне помогли разобраться с доступом к внутренней памяти. Попытался получить...

Как получить доступ из внешней сети с серым IP?
Мой провайдер (intertelecom wifi) не предоставляет постоянный IP, дает только серый. Можно ли при...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
19
Ответ Создать тему
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru